summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-07-25 19:20:49 +0000
committerRobert Pösel <robyer@seznam.cz>2016-07-25 19:20:49 +0000
commit0a110324bc5c7316fc52d9d86137d40759508794 (patch)
treebbdccc99eb1a02976ac1e714badbe8274262ff14 /protocols
parent8ae3679aa1339ce9abee53adb69902bd6b7513dc (diff)
Facebook: Join all locally present chatrooms at login
git-svn-id: http://svn.miranda-ng.org/main/trunk@17128 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/FacebookRM/src/connection.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/connection.cpp b/protocols/FacebookRM/src/connection.cpp
index ed60abb5c5..ec322c844e 100644
--- a/protocols/FacebookRM/src/connection.cpp
+++ b/protocols/FacebookRM/src/connection.cpp
@@ -156,6 +156,13 @@ void FacebookProto::ChangeStatus(void*)
return;
}
+ // Join all locally present chatrooms
+ for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)) {
+ if (isChatRoom(hContact)) {
+ OnJoinChat(hContact, NULL);
+ }
+ }
+
ToggleStatusMenuItems(true);
debugLogA("*** SignOn complete");
}