mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-03 19:54:12 +00:00 
			
		
		
		
	Handles messages update events
This commit is contained in:
		@@ -48,4 +48,10 @@ class ConversationMessagesList extends ListBase<ConversationMessage> {
 | 
			
		||||
      if (message.id < firstMessageID) firstMessageID = message.id;
 | 
			
		||||
    return firstMessageID;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /// Replace a message by another one (if any)
 | 
			
		||||
  void replace(ConversationMessage msg) {
 | 
			
		||||
    final index = this.indexWhere((t) => t.id == msg.id);
 | 
			
		||||
    if (index >= 0) this[index] = msg;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user