From b484e04a9e751267b02718a5dcb51f821738d456 Mon Sep 17 00:00:00 2001 From: Eazvy <57739965+Eazvy@users.noreply.github.com> Date: Thu, 27 Mar 2025 11:44:14 -0400 Subject: [PATCH] fix (randomVoice ) NavigateTo (#200) * Update index.tsx * Update styles.css * Update index.tsx --- src/equicordplugins/randomVoice/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/equicordplugins/randomVoice/index.tsx b/src/equicordplugins/randomVoice/index.tsx index 7dce3373..9920b441 100644 --- a/src/equicordplugins/randomVoice/index.tsx +++ b/src/equicordplugins/randomVoice/index.tsx @@ -705,10 +705,9 @@ function getChannels() { function JoinVc(channelID) { const channel = ChannelStore.getChannel(channelID); - + const channel_link = `/channels/${channel.guild_id}/${channel.id}`; ChannelActions.selectVoiceChannel(channelID); - - if (settings.store.autoNavigate) NavigationRouter.transitionTo(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.selfMute && !MediaEngineStore.isSelfMute() && SelectedChannelStore.getVoiceChannelId()) toggleSelfMute();