summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_chatrooms.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-07-24 14:35:02 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-07-24 14:35:02 +0000
commit6f562987395cad37f8aa55a8950ca86b64f987ad (patch)
treecb02a55d3be21f17275d3a8790a70272ae2e6100 /protocols/SkypeWeb/src/skype_chatrooms.cpp
parent6462bedd197e7a1ff6e3aa824c904caff561b04a (diff)
SkypeWeb: ChatCreateDialog refactoring
git-svn-id: http://svn.miranda-ng.org/main/trunk@14678 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_chatrooms.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_chatrooms.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/protocols/SkypeWeb/src/skype_chatrooms.cpp b/protocols/SkypeWeb/src/skype_chatrooms.cpp
index 2c52918dce..353b6064ee 100644
--- a/protocols/SkypeWeb/src/skype_chatrooms.cpp
+++ b/protocols/SkypeWeb/src/skype_chatrooms.cpp
@@ -562,22 +562,10 @@ INT_PTR CSkypeProto::SvcCreateChat(WPARAM, LPARAM)
if (IsOnline())
{
CSkypeGCCreateDlg dlg(this);
- if (!dlg.DoModal())
- {
- return 1;
- }
- LIST<char>uids(1);
- for (std::vector<MCONTACT>::size_type i = 0; i < dlg.m_hContacts.size(); i++)
- {
- uids.insert(db_get_sa(dlg.m_hContacts[i], m_szModuleName, SKYPE_SETTINGS_ID));
- }
- uids.insert(getStringA(SKYPE_SETTINGS_ID));
+ if (!dlg.DoModal()) { return 1; }
- SendRequest(new CreateChatroomRequest(m_szRegToken, uids, ptrA(getStringA(SKYPE_SETTINGS_ID)), m_szServer));
+ SendRequest(new CreateChatroomRequest(m_szRegToken, dlg.m_ContactsList, ptrA(getStringA(SKYPE_SETTINGS_ID)), m_szServer));
- for (int i = 0; i < uids.getCount(); i++)
- mir_free(uids[i]);
- uids.destroy();
return 0;
}
return 1;