From 4476cbdc8187cb68edcb178b140b5ce2c2a90bbf Mon Sep 17 00:00:00 2001 From: maver Date: Sun, 4 Jun 2023 17:45:03 +0200 Subject: [PATCH] Fire event when selecting a group chat --- public/scripts/group-chats.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/scripts/group-chats.js b/public/scripts/group-chats.js index 3f03971ec..f2fb50d57 100644 --- a/public/scripts/group-chats.js +++ b/public/scripts/group-chats.js @@ -1166,6 +1166,8 @@ function select_group_chats(groupId, skipAnimation) { sortGroupMembers("#rm_group_add_members .group_member"); await eventSource.emit(event_types.GROUP_UPDATED); }); + + document.dispatchEvent(new CustomEvent('groupSelected', { detail: {id: groupId, group: group}})); } function updateFavButtonState(state) {