This commit is contained in:
NoLogicAlan committed 2026-05-28 18:13:53 +03:00
1 parent 5a29545d41
commit 93ab04691c
4 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -144,7 +144,7 @@ function remove247ChannelMode(set, channelId, currentChannels) {
if (!modes || typeof modes !== "object" || Array.isArray(modes)) return;
delete modes[channelId];
set.set("stay_247_modes", modes);
if (currentChannels.size === 0) {
if (!currentChannels || currentChannels.size === 0) {
set.set("stay_247_mode", "off");
} else {
const firstChannel = [...currentChannels][0];