diff --git a/src/converse-chatview.js b/src/converse-chatview.js index 30211c90b..c586b1fd8 100644 --- a/src/converse-chatview.js +++ b/src/converse-chatview.js @@ -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);