fix chat placeholder

This commit is contained in:
Vitaly Turovsky 2025-02-10 21:04:40 +03:00
commit 208f5b7e0d

View file

@ -49,7 +49,7 @@ export default () => {
opacity={(isChatActive ? chatOpacityOpened : chatOpacity) / 100}
messages={messages}
opened={isChatActive}
placeholder={forwardChat && viewerConnection ? undefined : 'Chat forwarding is not enabled in the plugin settings'}
placeholder={forwardChat || !viewerConnection ? undefined : 'Chat forwarding is not enabled in the plugin settings'}
sendMessage={(message) => {
const builtinHandled = tryHandleBuiltinCommand(message)
if (miscUiState.loadedServerIndex && (message.startsWith('/login') || message.startsWith('/register'))) {