changed if statement

This commit is contained in:
TeamAbronDev
2025-01-20 09:55:01 +03:30
parent a64604fd8f
commit e26158e3c8

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];