fixed bug when switching from one pomodoro channel to other
All checks were successful
release-tag / release-image (push) Successful in 18s
All checks were successful
release-tag / release-image (push) Successful in 18s
This commit is contained in:
parent
fca6927b08
commit
4031291c38
@ -20,7 +20,7 @@ export default class PomodoroController extends EventEmitter {
|
|||||||
oldState.channelId !== newState.channelId;
|
oldState.channelId !== newState.channelId;
|
||||||
|
|
||||||
const leftPomodoroVC = oldState.channelId != null && this.pomodoroChannels.includes(oldState.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)) {
|
if (joinedPomodoroVC && !this.activePomodoros.has(userId)) {
|
||||||
const member = newState.member;
|
const member = newState.member;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user