Improve read status handling in room list
Only consider the room as unread, if there is a message in the room and only consider message and sticker events as messages. fixes #65
This commit is contained in:
parent
653ad0be97
commit
62b962cb44
@ -918,6 +918,9 @@ Cache::calculateRoomReadStatus(const std::string &room_id)
|
||||
const auto last_event_id = getLastMessageInfo(txn, room_id).event_id;
|
||||
const auto localUser = utils::localUser().toStdString();
|
||||
|
||||
if (last_event_id.isEmpty())
|
||||
return false;
|
||||
|
||||
txn.commit();
|
||||
|
||||
// Retrieve all read receipts for that event.
|
||||
|
Loading…
Reference in New Issue
Block a user