mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
Merge pull request #13 from archem-team/bug/channel_type
changed checking server_id policy
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user