bug-open closed dms

pull/1073/head
TeamAbronDev 2025-01-04 10:14:40 +03:30
parent ed6e0f3fbe
commit f1f51d4d7b
1 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ export const Channel = observer(
const client = useClient();
const state = useApplicationState();
if (!client.channels.exists(id)) {
if (!client.channels.exists(id) && client.servers.get(server_id)) {
if (server_id) {
const server = client.servers.get(server_id);
if (server && server.channel_ids.length > 0) {
@ -110,7 +110,7 @@ export const Channel = observer(
target_id = last_id;
}
}
return (
<Redirect
to={`/server/${server_id}/channel/${target_id}`}