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
member1-and-too-many-others
Nicolas Werner 5 years ago
parent 653ad0be97
commit 62b962cb44
  1. 3
      src/Cache.cpp

@ -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…
Cancel
Save