diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-26 15:23:19 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-26 15:23:19 +0300 |
commit | da1b2a070c113222cbbad31b18ab704c7d1301b2 (patch) | |
tree | 841092328c9c7fb35c3454627296862a956f5d5c /protocols/FacebookRM | |
parent | be1918c1b2986ddb387cd593deddf120f9e61874 (diff) |
Chat_AddGroup - simplified prototype
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r-- | protocols/FacebookRM/src/chat.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/protocols/FacebookRM/src/chat.cpp b/protocols/FacebookRM/src/chat.cpp index 54d6309dfe..f44f9e93f3 100644 --- a/protocols/FacebookRM/src/chat.cpp +++ b/protocols/FacebookRM/src/chat.cpp @@ -245,13 +245,15 @@ void FacebookProto::AddChat(const char *id, const wchar_t *tname) ptrW tid(mir_a2u(id)); // Create the group chat session - Chat_NewSession(GCW_PRIVMESS, m_szModuleName, tid, tname); + SESSION_INFO *si = Chat_NewSession(GCW_PRIVMESS, m_szModuleName, tid, tname); + if (!si) + return; // Send setting events - Chat_AddGroup(m_szModuleName, tid, TranslateT("Myself")); - Chat_AddGroup(m_szModuleName, tid, TranslateT("Friend")); - Chat_AddGroup(m_szModuleName, tid, TranslateT("User")); - Chat_AddGroup(m_szModuleName, tid, TranslateT("Former")); + Chat_AddGroup(si, TranslateT("Myself")); + Chat_AddGroup(si, TranslateT("Friend")); + Chat_AddGroup(si, TranslateT("User")); + Chat_AddGroup(si, TranslateT("Former")); // Finish initialization bool hideChats = getBool(FACEBOOK_KEY_HIDE_CHATS, DEFAULT_HIDE_CHATS); |