summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/SkypeWeb/src/skype_contacts.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_contacts.cpp b/protocols/SkypeWeb/src/skype_contacts.cpp
index 8c539e72e1..82f5adece3 100644
--- a/protocols/SkypeWeb/src/skype_contacts.cpp
+++ b/protocols/SkypeWeb/src/skype_contacts.cpp
@@ -37,8 +37,11 @@ void CSkypeProto::SetAllContactsStatus(WORD status)
{
for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName))
{
- SetContactStatus(hContact, status);
+ if (!isChatRoom(hContact))
+ SetContactStatus(hContact, status);
}
+ if (status == ID_STATUS_OFFLINE)
+ CloseAllChatChatSessions();
}
void CSkypeProto::SetChatStatus(MCONTACT hContact, int iStatus)