Commit 28df97f9 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Do not include the sender of the message when getting its IMDN state.

parent 065dbf97
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment