diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-07 13:32:34 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-07 13:32:34 +0000 |
commit | 4056ab703967ccbba528aebc93802f732ae13884 (patch) | |
tree | 3dc1984ed3fa17e48260ad9921f2377179a3c65c /protocols/SkypeWeb/src/skype_poll_processing.cpp | |
parent | 4e67bd6db63fbd628fb3db7ad73b784b7a2a0036 (diff) |
SkypeWeb: Chats support part 1.1.
git-svn-id: http://svn.miranda-ng.org/main/trunk@12651 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_poll_processing.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_poll_processing.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_poll_processing.cpp b/protocols/SkypeWeb/src/skype_poll_processing.cpp index 376e366eae..cdf2457813 100644 --- a/protocols/SkypeWeb/src/skype_poll_processing.cpp +++ b/protocols/SkypeWeb/src/skype_poll_processing.cpp @@ -86,9 +86,8 @@ void CSkypeProto::ProcessNewMessageRes(JSONNODE *node) {
ptrA chatname(ChatUrlToName(conversationLink));
ptrA topic(mir_t2a(ptrT(json_as_string(json_get(node, "threadtopic")))));
- if (GetContact(chatname) == NULL)
- AddChatRoom(chatname);
-
+ MCONTACT chatContact = AddChatRoom(chatname);
+ SetChatStatus(chatContact, ID_STATUS_ONLINE);
if (!mir_strcmpi(messageType, "Text") || !mir_strcmpi(messageType, "RichText"))
{
|