change: Click on background to clear selected events

This commit is contained in:
S1m 2022-01-03 16:12:09 +00:00 committed by Krille Fear
commit 78fd5d5192
2 changed files with 159 additions and 141 deletions

View file

@ -682,6 +682,12 @@ class ChatController extends State<Chat> {
showEmojiPicker = false;
});
void clearSingleSelectedEvent() {
if (selectedEvents.length <= 1) {
clearSelectedEvents();
}
}
void editSelectedEventAction() {
final client = currentRoomBundle.firstWhere(
(cl) => selectedEvents.first.senderId == cl.userID,