summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_chats.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-09-19 14:17:59 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-09-19 14:17:59 +0000
commit9f974ab8617b6b7c19bac9e71d06de89d7e7bd03 (patch)
treeadfbe951d1c291fe0904a083d332889aa043f3ac /protocols/VKontakte/src/vk_chats.cpp
parent0f37fbfbfe24563a6be07f9abd245374e66cb173 (diff)
- struct GCSESSION died;
- Chat_NewSession simply gets 5 parameters; - minor chat code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@17318 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_chats.cpp')
-rw-r--r--protocols/VKontakte/src/vk_chats.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp
index a8b95dbc1e..2d3fdeb13c 100644
--- a/protocols/VKontakte/src/vk_chats.cpp
+++ b/protocols/VKontakte/src/vk_chats.cpp
@@ -59,13 +59,7 @@ CVkChatInfo* CVkProto::AppendChat(int id, const JSONNode &jnDlg)
CMStringW sid;
sid.Format(L"%S_%d", m_szModuleName, id);
c->m_wszId = mir_wstrdup(sid);
-
- GCSESSION gcw = {};
- gcw.iType = GCW_CHATROOM;
- gcw.pszModule = m_szModuleName;
- gcw.ptszName = wszTitle;
- gcw.ptszID = sid;
- Chat_NewSession(&gcw);
+ Chat_NewSession(GCW_CHATROOM, m_szModuleName, sid, wszTitle);
GC_INFO gci = {};
gci.pszModule = m_szModuleName;