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

changed checking server_id policy
This commit is contained in:
teamabron
2025-01-15 11:04:20 +03:30
committed by GitHub

View File

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