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
4141af83
Commit
4141af83
authored
Dec 05, 2017
by
Benjamin REIS
Browse files
Do not add me on serverGroupChatRoom
parent
c91dc4b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/db/main-db.cpp
src/db/main-db.cpp
+6
-2
No files found.
src/db/main-db.cpp
View file @
4141af83
...
...
@@ -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
());
...
...
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