mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 04:28:10 +00:00
Add option to deactivate handling of chat message state by participant in group chat.
This commit is contained in:
parent
1cfd805731
commit
7137ca85dc
2 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue