EquicordHelper: dont remove icon if youre in it

This commit is contained in:
thororen1234 2026-05-25 15:26:02 -04:00
parent 02d2e2cfb4
commit ecd7f9859a
No known key found for this signature in database

View file

@ -413,7 +413,10 @@ export default definePlugin({
},
hasUnmutedVoiceChannel(guildId: string) {
const voiceStates = VoiceStateStore.getVoiceStates(guildId);
const currentUserVoiceState = VoiceStateStore.getVoiceStateForUser(UserStore.getCurrentUser()?.id);
return Object.values(voiceStates ?? {}).some(voiceState =>
voiceState?.channelId === currentUserVoiceState?.channelId ||
!UserGuildSettingsStore.isChannelMuted(guildId, voiceState?.channelId!)
);
}