Update index.tsx

This commit is contained in:
Eazvy 2025-03-27 11:14:22 -04:00 committed by GitHub
parent 9ee352c67f
commit f6da987c6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -705,8 +705,9 @@ function getChannels() {
function JoinVc(channelID) { function JoinVc(channelID) {
const channel = ChannelStore.getChannel(channelID); const channel = ChannelStore.getChannel(channelID);
const channel_link = `/channels/${channel.guild_id}/${channel.id}`;
ChannelActions.selectVoiceChannel(channelID); ChannelActions.selectVoiceChannel(channelID);
if (settings.store.autoNavigate) NavigationRouter.transitionToGuild(channel.guild_id, channel.id); if (settings.store.autoNavigate) NavigationRouter.transitionTo(channel_link);
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();