Merge pull request #19 from archem-team/bug/channel-type_err

changed if statement
pull/1075/head
teamabron 2025-01-20 14:03:02 +03:30 committed by GitHub
commit be8bb87ce7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

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