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
7137ca85
Commit
7137ca85
authored
Feb 15, 2018
by
Ghislain MARY
Browse files
Add option to deactivate handling of chat message state by participant in group chat.
parent
1cfd8057
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
src/chat/chat-message/chat-message.cpp
src/chat/chat-message/chat-message.cpp
+5
-1
tester/group_chat_tester.c
tester/group_chat_tester.c
+3
-0
No files found.
src/chat/chat-message/chat-message.cpp
View file @
7137ca85
...
...
@@ -66,7 +66,11 @@ void ChatMessagePrivate::setIsReadOnly (bool readOnly) {
void
ChatMessagePrivate
::
setParticipantState
(
const
IdentityAddress
&
participantAddress
,
ChatMessage
::
State
newState
)
{
L_Q
();
if
(
!
(
q
->
getChatRoom
()
->
getCapabilities
()
&
AbstractChatRoom
::
Capabilities
::
Conference
))
{
if
(
!
(
q
->
getChatRoom
()
->
getCapabilities
()
&
AbstractChatRoom
::
Capabilities
::
Conference
)
||
(
linphone_config_get_bool
(
linphone_core_get_config
(
q
->
getChatRoom
()
->
getCore
()
->
getCCore
()),
"misc"
,
"enable_simple_group_chat_message_state"
,
TRUE
))
)
{
setState
(
newState
);
return
;
}
...
...
tester/group_chat_tester.c
View file @
7137ca85
...
...
@@ -2635,6 +2635,9 @@ static void imdn_for_group_chat_room (void) {
linphone_im_notif_policy_enable_all
(
linphone_core_get_im_notif_policy
(
marie
->
lc
));
linphone_im_notif_policy_enable_all
(
linphone_core_get_im_notif_policy
(
pauline
->
lc
));
linphone_im_notif_policy_enable_all
(
linphone_core_get_im_notif_policy
(
chloe
->
lc
));
linphone_config_set_bool
(
linphone_core_get_config
(
marie
->
lc
),
"misc"
,
"enable_simple_group_chat_message_state"
,
FALSE
);
linphone_config_set_bool
(
linphone_core_get_config
(
pauline
->
lc
),
"misc"
,
"enable_simple_group_chat_message_state"
,
FALSE
);
linphone_config_set_bool
(
linphone_core_get_config
(
chloe
->
lc
),
"misc"
,
"enable_simple_group_chat_message_state"
,
FALSE
);
// Marie creates a new group chat room
const
char
*
initialSubject
=
"Colleagues"
;
...
...
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