mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Enable storage of chat message participant state for basic chat rooms and if simple group chat message state is activated.
This commit is contained in:
parent
370b96225f
commit
b76886ddbb
1 changed files with 8 additions and 9 deletions
|
|
@ -93,15 +93,6 @@ list<ParticipantImdnState> 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<ChatMessage::State> states = mainDb->getChatMessageParticipantStates(eventLog);
|
||||
size_t nbDisplayedStates = 0;
|
||||
size_t nbDeliveredToUserStates = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue