Commit 38bb845c authored by JC Brand's avatar JC Brand

muc-views: ensure MUC becomes visible when opened via modal

parent f68f577b
...@@ -449,7 +449,7 @@ converse.plugins.add('converse-muc-views', { ...@@ -449,7 +449,7 @@ converse.plugins.add('converse-muc-views', {
const jid = ev.target.getAttribute('data-room-jid'); const jid = ev.target.getAttribute('data-room-jid');
const name = ev.target.getAttribute('data-room-name'); const name = ev.target.getAttribute('data-room-name');
this.modal.hide(); this.modal.hide();
api.rooms.open(jid, {'name': name}); api.rooms.open(jid, {'name': name}, true);
}, },
toggleRoomInfo (ev) { toggleRoomInfo (ev) {
...@@ -585,7 +585,7 @@ converse.plugins.add('converse-muc-views', { ...@@ -585,7 +585,7 @@ converse.plugins.add('converse-muc-views', {
jid = data.jid jid = data.jid
this.model.setDomain(jid); this.model.setDomain(jid);
} }
api.rooms.open(jid, Object.assign(data, {jid})); api.rooms.open(jid, Object.assign(data, {jid}), true);
this.modal.hide(); this.modal.hide();
ev.target.reset(); ev.target.reset();
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment