Fire event when selecting a group chat

This commit is contained in:
maver 2023-06-04 17:45:03 +02:00
parent 7411ca1154
commit 4476cbdc81
1 changed files with 2 additions and 0 deletions

View File

@ -1166,6 +1166,8 @@ function select_group_chats(groupId, skipAnimation) {
sortGroupMembers("#rm_group_add_members .group_member"); sortGroupMembers("#rm_group_add_members .group_member");
await eventSource.emit(event_types.GROUP_UPDATED); await eventSource.emit(event_types.GROUP_UPDATED);
}); });
document.dispatchEvent(new CustomEvent('groupSelected', { detail: {id: groupId, group: group}}));
} }
function updateFavButtonState(state) { function updateFavButtonState(state) {