chatview: use utils.isPersistableModel

This commit is contained in:
JC Brand 2017-06-23 18:19:20 +02:00
parent 713e24e0e6
commit 3e8e770517

View File

@ -778,9 +778,7 @@
},
afterShown: function (focus) {
if (this.model.collection.browserStorage) {
// Without a connection, we haven't yet initialized
// localstorage
if (utils.isPersistableModel(this.model)) {
this.model.save();
}
this.setChatState(_converse.ACTIVE);