Replace NeedToRegisterDialog /w SetMxIdDialog
This uses MatrixChat's `view_set_mxid`
This commit is contained in:
parent
81806e23bf
commit
f199f3599e
8 changed files with 11 additions and 124 deletions
|
@ -41,12 +41,7 @@ function createRoom(opts) {
|
|||
|
||||
const client = MatrixClientPeg.get();
|
||||
if (client.isGuest()) {
|
||||
setTimeout(()=>{
|
||||
Modal.createDialog(NeedToRegisterDialog, {
|
||||
title: "Please Register",
|
||||
description: "Guest users can't create new rooms. Please register to create room and start a chat."
|
||||
});
|
||||
}, 0);
|
||||
dis.dispatch({action: 'view_set_mxid'});
|
||||
return q(null);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue