1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Display icons for all conversations

This commit is contained in:
2021-03-11 18:00:06 +01:00
parent c8ca80f6e7
commit b9babd43a8
5 changed files with 128 additions and 12 deletions

View File

@ -56,6 +56,9 @@ class Conversation extends SerializableElement<Conversation> {
/// Get the list of members in the conversation
Set<int> get membersID => members.map((e) => e.userID).toSet();
/// Get the list of the OTHER members of the conversation (all except current user)
Set<int> get otherMembersID => membersID..remove(userID());
/// Check if the last message has been seen or not
bool get sawLastMessage => lastActivity <= membership.lastAccessTime;