diff --git a/web/pages/config-chat.tsx b/web/pages/config-chat.tsx
index 3c1c9acae..029b52116 100644
--- a/web/pages/config-chat.tsx
+++ b/web/pages/config-chat.tsx
@@ -16,6 +16,7 @@ import {
API_CHAT_FORBIDDEN_USERNAMES,
API_CHAT_SUGGESTED_USERNAMES,
FIELD_PROPS_CHAT_JOIN_MESSAGES_ENABLED,
+ CHAT_ESTABLISHED_USER_MODE,
FIELD_PROPS_DISABLE_CHAT,
postConfigUpdateToAPI,
RESET_TIMEOUT,
@@ -39,6 +40,7 @@ export default function ConfigChat() {
forbiddenUsernames,
instanceDetails,
suggestedUsernames,
+ chatEstablishedUserMode,
} = serverConfig;
const { welcomeMessage } = instanceDetails;
@@ -57,6 +59,10 @@ export default function ConfigChat() {
handleFieldChange({ fieldName: 'chatJoinMessagesEnabled', value: enabled });
}
+ function handleEstablishedUserModeChange(enabled: boolean) {
+ handleFieldChange({ fieldName: 'chatEstablishedUserMode', value: enabled });
+ }
+
function resetForbiddenUsernameState() {
setForbiddenUsernameSaveState(null);
}
@@ -146,6 +152,7 @@ export default function ConfigChat() {
forbiddenUsernames,
suggestedUsernames,
welcomeMessage,
+ chatEstablishedUserMode,
});
}, [serverConfig]);
@@ -170,6 +177,12 @@ export default function ConfigChat() {
checked={formDataValues.chatJoinMessagesEnabled}
onChange={handleChatJoinMessagesEnabledChange}
/>
+