mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Do not add me on serverGroupChatRoom
This commit is contained in:
parent
c91dc4b5ef
commit
4141af833c
1 changed files with 6 additions and 2 deletions
|
|
@ -272,8 +272,12 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
|
|||
if (!chatRoom->canHandleParticipants())
|
||||
return id;
|
||||
|
||||
shared_ptr<Participant> me = chatRoom->getMe();
|
||||
insertChatRoomParticipant(id, insertSipAddress(me->getAddress().asString()), me->isAdmin());
|
||||
// Do not add 'me' when creating a server-group-chat-room.
|
||||
if (chatRoomId.getLocalAddress() != chatRoomId.getPeerAddress()) {
|
||||
shared_ptr<Participant> me = chatRoom->getMe();
|
||||
insertChatRoomParticipant(id, insertSipAddress(me->getAddress().asString()), me->isAdmin());
|
||||
}
|
||||
|
||||
for (const auto &participant : chatRoom->getParticipants())
|
||||
insertChatRoomParticipant(id, insertSipAddress(participant->getAddress().asString()), participant->isAdmin());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue