diff --git a/src/chat/chat-message/chat-message.cpp b/src/chat/chat-message/chat-message.cpp index 259d1e921..bd3c20c8b 100644 --- a/src/chat/chat-message/chat-message.cpp +++ b/src/chat/chat-message/chat-message.cpp @@ -93,15 +93,6 @@ list ChatMessagePrivate::getParticipantsByImdnState (MainD void ChatMessagePrivate::setParticipantState (const IdentityAddress &participantAddress, ChatMessage::State newState, time_t stateChangeTime) { L_Q(); - 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", FALSE - )) - ) { - setState(newState); - return; - } - if (!dbKey.isValid()) return; @@ -115,6 +106,14 @@ void ChatMessagePrivate::setParticipantState (const IdentityAddress &participant << Utils::toString(newState); mainDb->setChatMessageParticipantState(eventLog, participantAddress, newState, stateChangeTime); + if (linphone_config_get_bool(linphone_core_get_config(q->getChatRoom()->getCore()->getCCore()), + "misc", "enable_simple_group_chat_message_state", FALSE + ) + ) { + setState(newState); + return; + } + list states = mainDb->getChatMessageParticipantStates(eventLog); size_t nbDisplayedStates = 0; size_t nbDeliveredToUserStates = 0;