Commit 3e8e7705 authored by JC Brand's avatar JC Brand

chatview: use `utils.isPersistableModel`

parent 713e24e0
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment