diff options
| author | George Hazan <ghazan@miranda.im> | 2020-04-16 20:27:26 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2020-04-16 20:27:26 +0300 |
| commit | 3b576fbd2dc5359c9c2e3b79633f77ec97d307c9 (patch) | |
| tree | e1ee7ed1f19ea84342e3f6b827d14be7f2c2a63c /protocols/SkypeWeb/src/skype_dialogs.cpp | |
| parent | a1c32d8bf1118b20e9a701e2b6ac0300cf704e55 (diff) | |
SkypeWeb:
- fixes #2306 (SkypeWeb: sometimes plugin does not show contacts statuses);
- obsoleted GetContactsInfoRequest removed (as well as its handler CSkypeProto::LoadContactsInfo);
- major optimization for polling process;
- ugly & crashy map Contacts removed;
- old crappy timer code removed and replaced with CTimer;
- version bump
Diffstat (limited to 'protocols/SkypeWeb/src/skype_dialogs.cpp')
| -rw-r--r-- | protocols/SkypeWeb/src/skype_dialogs.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/protocols/SkypeWeb/src/skype_dialogs.cpp b/protocols/SkypeWeb/src/skype_dialogs.cpp index 17f5f9bf4e..d0f3ba18a9 100644 --- a/protocols/SkypeWeb/src/skype_dialogs.cpp +++ b/protocols/SkypeWeb/src/skype_dialogs.cpp @@ -78,15 +78,10 @@ bool CSkypeGCCreateDlg::OnInitDialog() void CSkypeGCCreateDlg::btnOk_OnOk(CCtrlButton*)
{
for (auto &hContact : m_proto->AccContacts()) {
- if (!m_proto->isChatRoom(hContact)) {
- if (HANDLE hItem = m_clc.FindContact(hContact)) {
- if (m_clc.GetCheck(hItem)) {
- char *szName = mir_strdup(m_proto->Contacts[hContact]);
- if (szName != nullptr)
- m_ContactsList.insert(szName);
- }
- }
- }
+ if (!m_proto->isChatRoom(hContact))
+ if (HANDLE hItem = m_clc.FindContact(hContact))
+ if (m_clc.GetCheck(hItem))
+ m_ContactsList.insert(m_proto->getId(hContact).Detach());
}
m_ContactsList.insert(m_proto->m_szSkypename.GetBuffer());
|
