mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Handles remove message events
This commit is contained in:
@ -54,4 +54,7 @@ class ConversationMessagesList extends ListBase<ConversationMessage> {
|
||||
final index = this.indexWhere((t) => t.id == msg.id);
|
||||
if (index >= 0) this[index] = msg;
|
||||
}
|
||||
|
||||
/// Remove a message from this list
|
||||
void removeMsg(int id) => removeWhere((f) => f.id == id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user