From 92e80d3bad2b75bb09b0509da5b076cdcd72bdbb Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 19 May 2025 01:15:40 +0300 Subject: [PATCH] hideMutedSprites is hilariously broken --- public/scripts/group-chats.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/scripts/group-chats.js b/public/scripts/group-chats.js index 1c579a53d..a3ef8a53a 100644 --- a/public/scripts/group-chats.js +++ b/public/scripts/group-chats.js @@ -105,7 +105,7 @@ export { let is_group_generating = false; // Group generation flag let is_group_automode_enabled = false; -let hideMutedSprites = true; +let hideMutedSprites = false; let groups = []; let selected_group = null; let group_generation_id = null; @@ -1527,6 +1527,7 @@ async function onHideMutedSpritesClick(value) { _thisGroup.hideMutedSprites = value; console.log(`_thisGroup.hideMutedSprites = ${_thisGroup.hideMutedSprites}`); await editGroup(openGroupId, false, false); + await eventSource.emit(event_types.GROUP_UPDATED); } } @@ -1620,6 +1621,9 @@ function select_group_chats(groupId, skipAnimation) { }); } + hideMutedSprites = group?.hideMutedSprites ?? false; + $('#rm_group_hidemutedsprites').prop('checked', hideMutedSprites); + eventSource.emit('groupSelected', { detail: { id: openGroupId, group: group } }); }