mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
Do not include the sender of the message when getting its IMDN state.
This commit is contained in:
parent
065dbf970f
commit
28df97f934
1 changed files with 2 additions and 1 deletions
|
|
@ -82,8 +82,9 @@ list<ParticipantImdnState> ChatMessagePrivate::getParticipantsByImdnState (MainD
|
|||
shared_ptr<EventLog> eventLog = mainDb->getEventFromKey(dbKey);
|
||||
list<MainDb::ParticipantState> dbResults = func(eventLog);
|
||||
for (const auto &dbResult : dbResults) {
|
||||
auto sender = q->getChatRoom()->findParticipant(q->getFromAddress());
|
||||
auto participant = q->getChatRoom()->findParticipant(dbResult.address);
|
||||
if (participant)
|
||||
if (participant && (participant != sender))
|
||||
result.emplace_back(participant, dbResult.state, dbResult.timestamp);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue