VcNarrator: Ignore stage channels

This commit is contained in:
V 2023-06-30 15:55:20 +02:00
parent b607eebcb7
commit f09b44b0d5
No known key found for this signature in database
GPG Key ID: A1DC0CFB5615D905

@ -156,6 +156,8 @@ export default definePlugin({
const myChanId = SelectedChannelStore.getVoiceChannelId(); const myChanId = SelectedChannelStore.getVoiceChannelId();
const myId = UserStore.getCurrentUser().id; const myId = UserStore.getCurrentUser().id;
if (ChannelStore.getChannel(myChanId!)?.type === 13 /* Stage Channel */) return;
for (const state of voiceStates) { for (const state of voiceStates) {
const { userId, channelId, oldChannelId } = state; const { userId, channelId, oldChannelId } = state;
const isMe = userId === myId; const isMe = userId === myId;