|
@@ -531,6 +531,12 @@
|
|
|
|
|
|
if (this.model.get('connection_status') !== converse.ROOMSTATUS.ENTERED) {
|
|
if (this.model.get('connection_status') !== converse.ROOMSTATUS.ENTERED) {
|
|
const handler = () => {
|
|
const handler = () => {
|
|
|
|
+ if (!u.isPersistableModel(this.model)) {
|
|
|
|
+ // Happens during tests, nothing to do if this
|
|
|
|
+ // is a hanging chatbox (i.e. not in the
|
|
|
|
+ // collection anymore).
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
this.join();
|
|
this.join();
|
|
this.fetchMessages();
|
|
this.fetchMessages();
|
|
_converse.emit('chatRoomOpened', this);
|
|
_converse.emit('chatRoomOpened', this);
|