changed checking server_id policy

pull/1073/head
TeamAbronDev 2025-01-15 10:57:47 +03:30
parent 08bee07e61
commit 8992dab209
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ export const Channel = observer(
const client = useClient();
const state = useApplicationState();
if (!client.channels.exists(id) && client.servers.get(server_id)) {
if (!client.channels.exists(id) && server_id) {
if (server_id) {
const server = client.servers.get(server_id);
if (server && server.channel_ids.length > 0) {