1
0
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:
2020-04-19 14:29:01 +02:00
parent 88ba2d303e
commit 909e68e7bb
5 changed files with 28 additions and 7 deletions

View File

@ -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);
}