mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Fix unread conversations dropdown
This commit is contained in:
		@@ -9,7 +9,19 @@ class UnreadConversationsList extends AbstractList<UnreadConversation> {
 | 
			
		||||
  /// Get the ID of the users included in this list
 | 
			
		||||
  Set<int> get usersID {
 | 
			
		||||
    final set = Set<int>();
 | 
			
		||||
    forEach((element) => set.addAll(element.message.usersID));
 | 
			
		||||
    forEach((element) {
 | 
			
		||||
      set.addAll(element.conv.membersID);
 | 
			
		||||
      set.addAll(element.message.usersID);
 | 
			
		||||
    });
 | 
			
		||||
    return set;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /// Get the ID of the groups references ind this list
 | 
			
		||||
  Set<int> get groupsID {
 | 
			
		||||
    final set = Set<int>();
 | 
			
		||||
    forEach((element) {
 | 
			
		||||
      if (element.conv.isGroupConversation) set.add(element.conv.groupID);
 | 
			
		||||
    });
 | 
			
		||||
    return set;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user