do not subscribe twice for same chat room

This commit is contained in:
Benjamin Reis 2018-05-07 14:01:10 +02:00
parent 04bff71ae0
commit 60c83540c6

View file

@ -215,7 +215,7 @@ void ClientGroupChatRoomPrivate::onChatRoomCreated (const Address &remoteContact
IdentityAddress addr(remoteContact);
q->onConferenceCreated(addr);
if (remoteContact.hasParam("isfocus")) {
if (remoteContact.hasParam("isfocus") && !q->getCore()->getPrivate()->remoteListEventHandler->findHandler(q->getChatRoomId())) {
bgTask.start(q->getCore(), 32); // It will be stopped when receiving the first notify
qConference->getPrivate()->eventHandler->subscribe(q->getChatRoomId());
}