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