Catch errors when destroy
is called for already removed message
This commit is contained in:
parent
84bde6e766
commit
3085c5d408
|
@ -87,7 +87,13 @@ converse.plugins.add('converse-chatboxes', {
|
|||
this.on('change:put', this.uploadFile, this);
|
||||
}
|
||||
if (this.isOnlyChatStateNotification()) {
|
||||
window.setTimeout(this.destroy.bind(this), 20000);
|
||||
window.setTimeout(() => {
|
||||
try {
|
||||
this.destroy()
|
||||
} catch (e) {
|
||||
_converse.log(e, Strophe.LogLevel.ERROR);
|
||||
}
|
||||
}, 20000);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user