Commit 805db75e authored by JC Brand's avatar JC Brand

Bugfix. Handle case where there's no room data

parent a9d1e5c2
......@@ -2629,7 +2629,10 @@
openChatRoom (ev) {
ev.preventDefault();
_converse.openChatRoom(this.parseRoomDataFromEvent(ev));
const data = this.parseRoomDataFromEvent(ev);
if (!_.isUndefined(data)) {
_converse.openChatRoom(data);
}
},
setDomain (ev) {
......
......@@ -60,6 +60,9 @@
* user. They should always be shown.
*/
const result = this.__super__.parseRoomDataFromEvent.apply(this, arguments);
if (_.isUndefined(result)) {
return
}
result.hidden = false;
return result;
}
......
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