chatview: use utils.isPersistableModel
This commit is contained in:
parent
713e24e0e6
commit
3e8e770517
|
@ -778,9 +778,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
afterShown: function (focus) {
|
afterShown: function (focus) {
|
||||||
if (this.model.collection.browserStorage) {
|
if (utils.isPersistableModel(this.model)) {
|
||||||
// Without a connection, we haven't yet initialized
|
|
||||||
// localstorage
|
|
||||||
this.model.save();
|
this.model.save();
|
||||||
}
|
}
|
||||||
this.setChatState(_converse.ACTIVE);
|
this.setChatState(_converse.ACTIVE);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user