From 4031291c38268c504e5bc4c4f3a8ccdb51577a33 Mon Sep 17 00:00:00 2001 From: moriese Date: Sat, 10 May 2025 00:36:29 +0200 Subject: [PATCH] fixed bug when switching from one pomodoro channel to other --- src/actions/pomodoro/pomodoro.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/pomodoro/pomodoro.controller.ts b/src/actions/pomodoro/pomodoro.controller.ts index 3eb36d4..c7364fd 100644 --- a/src/actions/pomodoro/pomodoro.controller.ts +++ b/src/actions/pomodoro/pomodoro.controller.ts @@ -20,7 +20,7 @@ export default class PomodoroController extends EventEmitter { oldState.channelId !== newState.channelId; const leftPomodoroVC = oldState.channelId != null && this.pomodoroChannels.includes(oldState.channelId) && - newState.channelId !== config.discord.vchannelIdPomodoro25; + newState.channelId !== oldState.channelId; if (joinedPomodoroVC && !this.activePomodoros.has(userId)) { const member = newState.member;