Add configurable default homeserver

This commit is contained in:
Robert Long
2021-12-17 16:30:10 -08:00
parent 34d0483c99
commit 39d28a0488
8 changed files with 71 additions and 88 deletions

View File

@@ -62,7 +62,7 @@ export function Home() {
async function onCreateRoom() {
let _client = client;
if (!_client) {
if (!_client || isGuest) {
_client = await register(userName, randomString(16), true);
}
@@ -88,7 +88,7 @@ export function Home() {
setCreatingRoom(false);
});
},
[client, history, register]
[client, history, register, isGuest]
);
const onJoinRoom = useCallback(