Bugfix. Handle case where there's no room data
This commit is contained in:
parent
a9d1e5c235
commit
805db75e10
@ -2629,7 +2629,10 @@
|
|||||||
|
|
||||||
openChatRoom (ev) {
|
openChatRoom (ev) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
_converse.openChatRoom(this.parseRoomDataFromEvent(ev));
|
const data = this.parseRoomDataFromEvent(ev);
|
||||||
|
if (!_.isUndefined(data)) {
|
||||||
|
_converse.openChatRoom(data);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
setDomain (ev) {
|
setDomain (ev) {
|
||||||
|
@ -60,6 +60,9 @@
|
|||||||
* user. They should always be shown.
|
* user. They should always be shown.
|
||||||
*/
|
*/
|
||||||
const result = this.__super__.parseRoomDataFromEvent.apply(this, arguments);
|
const result = this.__super__.parseRoomDataFromEvent.apply(this, arguments);
|
||||||
|
if (_.isUndefined(result)) {
|
||||||
|
return
|
||||||
|
}
|
||||||
result.hidden = false;
|
result.hidden = false;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user