mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-02 03:09:23 +00:00
Also add 'me' devices of a chatroom (for encryption purposes)
This commit is contained in:
parent
008ec55b37
commit
34a95033a7
1 changed files with 7 additions and 1 deletions
|
|
@ -275,7 +275,13 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
|
|||
// 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());
|
||||
long long meId = insertChatRoomParticipant(
|
||||
id,
|
||||
insertSipAddress(me->getAddress().asString()),
|
||||
me->isAdmin()
|
||||
);
|
||||
for (const auto &device : me->getPrivate()->getDevices())
|
||||
insertChatRoomParticipantDevice(meId, insertSipAddress(device->getAddress().asString()));
|
||||
}
|
||||
|
||||
for (const auto &participant : chatRoom->getParticipants()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue