EquicordHelper: dont remove icon if youre in it
This commit is contained in:
parent
02d2e2cfb4
commit
ecd7f9859a
1 changed files with 3 additions and 0 deletions
|
|
@ -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!)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue