From 8274b3d157abebff8c853c3187c521d4976a9bc9 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Fri, 24 Nov 2017 16:00:59 +0100 Subject: [PATCH] Do not create a new focus participant when a client group chat room conference is created, only change its address. --- 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 3643d5240..54160d720 100644 --- a/src/chat/chat-room/client-group-chat-room.cpp +++ b/src/chat/chat-room/client-group-chat-room.cpp @@ -285,7 +285,7 @@ void ClientGroupChatRoom::onConferenceCreated (const IdentityAddress &addr) { L_D(); L_D_T(RemoteConference, dConference); dConference->conferenceAddress = addr; - dConference->focus = make_shared(addr); + dConference->focus->getPrivate()->setAddress(addr); d->chatRoomId = ChatRoomId(addr, d->chatRoomId.getLocalAddress()); getCore()->getPrivate()->insertChatRoom(getSharedFromThis()); }