mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-03 19:54:12 +00:00 
			
		
		
		
	Update conversations list screen
This commit is contained in:
		@@ -1,6 +1,5 @@
 | 
			
		||||
import 'dart:collection';
 | 
			
		||||
 | 
			
		||||
import 'package:comunic/lists/users_list.dart';
 | 
			
		||||
import 'package:comunic/models/conversation.dart';
 | 
			
		||||
 | 
			
		||||
/// Conversations list
 | 
			
		||||
@@ -9,7 +8,6 @@ import 'package:comunic/models/conversation.dart';
 | 
			
		||||
 | 
			
		||||
class ConversationsList extends ListBase<Conversation> {
 | 
			
		||||
  final List<Conversation> _list = [];
 | 
			
		||||
  UsersList users;
 | 
			
		||||
 | 
			
		||||
  set length(l) => _list.length = l;
 | 
			
		||||
 | 
			
		||||
@@ -27,4 +25,9 @@ class ConversationsList extends ListBase<Conversation> {
 | 
			
		||||
    forEach((c) => c.members.forEach((member) => list.add(member.userID)));
 | 
			
		||||
    return list;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /// Get the entire lists of groups ID in this list
 | 
			
		||||
  Set<int> get allGroupsID => where((element) => element.isGroupConversation)
 | 
			
		||||
      .map((e) => e.groupID)
 | 
			
		||||
      .toSet();
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user