Skip to main content

Feature switches

ChatUI exposes feature toggles through ChatUICommand with setCommandSwitch / getCommandSwitch. Call them before app.ready().

Switch reference

CommandDescription
ChatUICommand.SHOW_CONNECTION_STATUS_IN_CHANNEL_LISTShow connection status hints in the channel list region.
ChatUICommand.SHOW_MESSAGE_STATEShow delivery/read style states (when off, only minimal states such as sending/failed may remain).
ChatUICommand.MENTION_ALLAllow @all in group channels.
ChatUICommand.PROMPT_SENDER_WHEN_QUOTE_MESSAGEWhen quoting, default-mention the original author.
ChatUICommand.DELETE_MESSAGES_WHILE_DELETE_CHANNELWhen deleting a channel, also call deleteMessagesForMeByTimestamp to clear the current user's server-side message history in that channel.

Read and write

TypeScript
import { ChatUICommand } from '@nexconn/chatui';

app.setCommandSwitch(ChatUICommand.SHOW_MESSAGE_STATE, true);

const on = app.getCommandSwitch(ChatUICommand.SHOW_MESSAGE_STATE);