From 60c83540c642df1840381055567f3b1cb980fba8 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Mon, 7 May 2018 14:01:10 +0200 Subject: [PATCH] do not subscribe twice for same chat room --- src/chat/chat-room/client-group-chat-room.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat/chat-room/client-group-chat-room.cpp b/src/chat/chat-room/client-group-chat-room.cpp index 9ba60c83f..cbd6abd50 100644 --- a/src/chat/chat-room/client-group-chat-room.cpp +++ b/src/chat/chat-room/client-group-chat-room.cpp @@ -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()); }