Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp
446 B
Raw Blame
// SPDX-License-Identifier: AGPL-3.0-or-later

import Channels from '@app/features/channel/state/Channels';
import {THREAD_FEATURE_CHANNEL_TYPES} from '@fluxer/constants/src/ThreadConstants';

export function isSyncExcludedChannelId(channelId: string | null | undefined): boolean {
	if (channelId == null) return false;
	const channel = Channels.getChannel(channelId);
	return channel != null && THREAD_FEATURE_CHANNEL_TYPES.has(channel.type);
}