mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 11:56:57 +08:00
Add support to disable chat join messages. Closes https://github.com/owncast/owncast/issues/1582 (#452)
This commit is contained in:
@ -30,6 +30,7 @@ export const API_VIDEO_VARIANTS = '/video/streamoutputvariants';
|
||||
export const API_WEB_PORT = '/webserverport';
|
||||
export const API_YP_SWITCH = '/directoryenabled';
|
||||
export const API_CHAT_DISABLE = '/chat/disable';
|
||||
export const API_CHAT_JOIN_MESSAGES_ENABLED = '/chat/joinmessagesenabled';
|
||||
export const API_CHAT_FORBIDDEN_USERNAMES = '/chat/forbiddenusernames';
|
||||
export const API_CHAT_SUGGESTED_USERNAMES = '/chat/suggestedusernames';
|
||||
export const API_EXTERNAL_ACTIONS = '/externalactions';
|
||||
@ -192,6 +193,14 @@ export const FIELD_PROPS_DISABLE_CHAT = {
|
||||
useSubmit: true,
|
||||
};
|
||||
|
||||
export const FIELD_PROPS_CHAT_JOIN_MESSAGES_ENABLED = {
|
||||
apiPath: API_CHAT_JOIN_MESSAGES_ENABLED,
|
||||
configPath: '',
|
||||
label: 'Join Messages',
|
||||
tip: 'Show when a viewer joins the chat.',
|
||||
useSubmit: true,
|
||||
};
|
||||
|
||||
export const TEXTFIELD_PROPS_CHAT_FORBIDDEN_USERNAMES = {
|
||||
apiPath: API_CHAT_FORBIDDEN_USERNAMES,
|
||||
placeholder: 'username',
|
||||
|
||||
Reference in New Issue
Block a user