Update index.tsx

This commit is contained in:
Eazvy 2025-03-27 11:05:15 -04:00 committed by GitHub
parent f54fdd14a2
commit 067beea84a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -705,10 +705,8 @@ function getChannels() {
function JoinVc(channelID) { function JoinVc(channelID) {
const channel = ChannelStore.getChannel(channelID); const channel = ChannelStore.getChannel(channelID);
ChannelActions.selectVoiceChannel(channelID); ChannelActions.selectVoiceChannel(channelID);
if (settings.store.autoNavigate) NavigationRouter.transitionToGuild(channel.guild_id, channel.id);
if (settings.store.autoNavigate) NavigationRouter.transitionTo(channel.guild_id, channel.id);
if (settings.store.autoCamera && PermissionStore.can(STREAM, channel)) autoCamera(); if (settings.store.autoCamera && PermissionStore.can(STREAM, channel)) autoCamera();
if (settings.store.autoCamera && PermissionStore.can(STREAM, channel)) autoCamera(); if (settings.store.autoCamera && PermissionStore.can(STREAM, channel)) autoCamera();
if (settings.store.selfMute && !MediaEngineStore.isSelfMute() && SelectedChannelStore.getVoiceChannelId()) toggleSelfMute(); if (settings.store.selfMute && !MediaEngineStore.isSelfMute() && SelectedChannelStore.getVoiceChannelId()) toggleSelfMute();