Merge pull request #13 from archem-team/bug/channel_type

changed checking server_id policy
pull/1073/head
teamabron 2025-01-15 11:04:20 +03:30 committed by GitHub
commit 6325994611
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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) {