FollowVoiceUser: Fix condition to check voice state for user (#616)

* Fix condition to check voice state for user

* Fix condition check for voice state in followVoiceUser
This commit is contained in:
Oggetto 2025-12-30 21:34:00 +01:00 • committed by GitHub
parent 84900008ed
commit 5e153facba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,7 +88,7 @@ export default definePlugin({
if (
settings.store.onlyWhenInVoice
&& VoiceStateStore.getVoiceStateForUser(UserStore.getCurrentUser().id) === null
&& !VoiceStateStore.getVoiceStateForUser(UserStore.getCurrentUser().id)
) return;
voiceStates.forEach(voiceState => {