Replace NeedToRegisterDialog /w SetMxIdDialog

This uses MatrixChat's `view_set_mxid`
This commit is contained in:
Luke Barnard 2017-05-15 17:31:26 +01:00
parent 81806e23bf
commit f199f3599e
8 changed files with 11 additions and 124 deletions

View file

@ -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);
}