From da1b2a070c113222cbbad31b18ab704c7d1301b2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 26 Nov 2018 15:23:19 +0300 Subject: Chat_AddGroup - simplified prototype --- protocols/Gadu-Gadu/src/groupchat.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols/Gadu-Gadu/src') diff --git a/protocols/Gadu-Gadu/src/groupchat.cpp b/protocols/Gadu-Gadu/src/groupchat.cpp index 609bc68b9f..aab963f4e9 100644 --- a/protocols/Gadu-Gadu/src/groupchat.cpp +++ b/protocols/Gadu-Gadu/src/groupchat.cpp @@ -320,11 +320,14 @@ wchar_t* GaduProto::gc_getchat(uin_t sender, uin_t *recipients, int recipients_c // Create new room CMStringW wszTitle(L"#"); wszTitle.Append(sender ? senderName : TranslateT("Conference")); - Chat_NewSession(GCW_CHATROOM, m_szModuleName, chat->id, wszTitle, chat); + SESSION_INFO *si = Chat_NewSession(GCW_CHATROOM, m_szModuleName, chat->id, wszTitle, chat); + if (!si) + return nullptr; + Chat_SetStatusbarText(m_szModuleName, chat->id, status); // Add normal group - Chat_AddGroup(m_szModuleName, chat->id, TranslateT("Participants")); + Chat_AddGroup(si, TranslateT("Participants")); wchar_t id[32]; -- cgit v1.2.3