summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-04-19 17:36:13 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-04-19 17:36:13 +0000
commit4c38af081130d207d16065c43750bbdd1599c881 (patch)
tree8f8211c5b1eb38af4a17f3374683f3e1b8452edd
parent7a353e64c659460ccd3b6a196ed111f649968e46 (diff)
SkypeWeb: Small fixes.
git-svn-id: http://svn.miranda-ng.org/main/trunk@12940 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/SkypeWeb/src/skype_login.cpp3
-rw-r--r--protocols/SkypeWeb/src/skype_messages.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_login.cpp b/protocols/SkypeWeb/src/skype_login.cpp
index 9db25d8c64..00a065cbd5 100644
--- a/protocols/SkypeWeb/src/skype_login.cpp
+++ b/protocols/SkypeWeb/src/skype_login.cpp
@@ -194,7 +194,8 @@ void CSkypeProto::OnCapabilitiesSended(const NETLIBHTTPREQUEST *response)
LIST<char> skypenames(1);
for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName))
{
- skypenames.insert(getStringA(hContact, SKYPE_SETTINGS_ID));
+ if(!isChatRoom(hContact))
+ skypenames.insert(getStringA(hContact, SKYPE_SETTINGS_ID));
}
SendRequest(new CreateContactsRequest(RegToken, skypenames, Server));
for (int i = 0; i < skypenames.getCount(); i++)
diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp
index 51cc116d0d..0f952fa528 100644
--- a/protocols/SkypeWeb/src/skype_messages.cpp
+++ b/protocols/SkypeWeb/src/skype_messages.cpp
@@ -268,7 +268,7 @@ void CSkypeProto::OnPrivateMessageEvent(JSONNODE *node)
int CSkypeProto::OnDbEventRead(WPARAM hContact, LPARAM hDbEvent)
{
debugLogA(__FUNCTION__);
- if (IsOnline())
+ if (IsOnline() && !isChatRoom(hContact))
MarkMessagesRead(hContact, hDbEvent);
return 0;
}