fixed bug when switching from one pomodoro channel to other
All checks were successful
release-tag / release-image (push) Successful in 18s

This commit is contained in:
moriese 2025-05-10 00:36:29 +02:00
parent fca6927b08
commit 4031291c38

View File

@ -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;