mirror of https://github.com/vector-im/riot-web
Remove unnecessary if
parent
a8165d1707
commit
26cb1404c2
|
@ -80,7 +80,7 @@ function createRoom(opts) {
|
||||||
|
|
||||||
let roomId;
|
let roomId;
|
||||||
return client.createRoom(createOpts).finally(function() {
|
return client.createRoom(createOpts).finally(function() {
|
||||||
if (modal) modal.close();
|
modal.close();
|
||||||
}).then(function(res) {
|
}).then(function(res) {
|
||||||
roomId = res.room_id;
|
roomId = res.room_id;
|
||||||
if (opts.dmUserId) {
|
if (opts.dmUserId) {
|
||||||
|
|
Loading…
Reference in New Issue