Fix #48: Proper 404 and 403 pages when trying to open non-existant chatroom.:

* error page on the old endpoint, when anonymous users are disabled.
This commit is contained in:
John Livingston
2024-04-04 16:48:19 +02:00
parent 0719d25f35
commit 33bc346e83
3 changed files with 19 additions and 4 deletions

View File

@ -80,7 +80,7 @@ async function getConverseJSParams (
staticBaseUrl,
assetsPath: staticBaseUrl + 'conversejs/',
isRemoteChat: !!(roomInfos.video?.remote),
localAnonymousJID: localAnonymousJID,
localAnonymousJID: !settings['chat-no-anonymous'] ? localAnonymousJID : null,
remoteAnonymousJID: remoteConnectionInfos?.anonymous?.userJID ?? null,
remoteAnonymousXMPPServer: !!(remoteConnectionInfos?.anonymous),
remoteAuthenticatedXMPPServer: !!(remoteConnectionInfos?.authenticated),