summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_dialogs.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2012-12-21 19:30:58 +0000
committerAlexander Lantsev <aunsane@gmail.com>2012-12-21 19:30:58 +0000
commite0030d9abd9ecd7bf4ab41a7269c051601576a2d (patch)
treea97841b2fad6b5ac93d04df00025e28640bfe7fd /protocols/Skype/src/skype_dialogs.cpp
parent39b2a05de9a06cf58682694e29f98819d189a9e3 (diff)
- fixed name of new chat in CL
- fixed own messages in chat git-svn-id: http://svn.miranda-ng.org/main/trunk@2783 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_dialogs.cpp')
-rw-r--r--protocols/Skype/src/skype_dialogs.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/Skype/src/skype_dialogs.cpp b/protocols/Skype/src/skype_dialogs.cpp
index ed56eee734..f91416c599 100644
--- a/protocols/Skype/src/skype_dialogs.cpp
+++ b/protocols/Skype/src/skype_dialogs.cpp
@@ -556,7 +556,6 @@ INT_PTR CALLBACK CSkypeProto::InviteToChatProc(HWND hwndDlg, UINT msg, WPARAM wP
SEStringList invitedContacts;
param->ppro->GetInviteContacts(NULL, hwndList, invitedContacts);
- CConversation::Ref conversation;
char *chatID = ::mir_strdup(param->id);
if (chatID)
@@ -566,19 +565,18 @@ INT_PTR CALLBACK CSkypeProto::InviteToChatProc(HWND hwndDlg, UINT msg, WPARAM wP
param->ppro->AddChatContact(chatID, invitedContacts[i]);
}
+ CConversation::Ref conversation;
g_skype->GetConversationByIdentity(chatID, conversation);
conversation->AddConsumers(invitedContacts);
}
else
{
- chatID = param->ppro->StartChat(NULL);
+ chatID = param->ppro->StartChat(NULL, invitedContacts);
+
for (uint i = 0; i < invitedContacts.size(); i++)
{
param->ppro->AddChatContact(chatID, invitedContacts[i]);
}
-
- g_skype->GetConversationByIdentity(chatID, conversation);
- conversation->AddConsumers(invitedContacts);
}
}