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

chatview: use `utils.isPersistableModel`

parent 713e24e0
...@@ -778,9 +778,7 @@ ...@@ -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);
......
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