Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
34a95033
Commit
34a95033
authored
Dec 05, 2017
by
Benjamin REIS
Browse files
Also add 'me' devices of a chatroom (for encryption purposes)
parent
008ec55b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/db/main-db.cpp
src/db/main-db.cpp
+7
-1
No files found.
src/db/main-db.cpp
View file @
34a95033
...
...
@@ -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
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment