Commit 14ce4a0e authored by JC Brand's avatar JC Brand

Bugfix. Don't override chat_status retrieved from sessionStorage.

See http://librelist.com/browser//conversejs/2014/8/26/problem-with-contact-list-everyone-is-offline/
parent 1b465874
......@@ -2933,17 +2933,15 @@
this.RosterContact = Backbone.Model.extend({
initialize: function (attributes, options) {
var jid = attributes.jid;
if (!attributes.fullname) {
attributes.fullname = jid;
}
var attrs = _.extend({
'id': jid,
'fullname': jid,
'chat_status': 'offline',
'user_id': Strophe.getNodeFromJid(jid),
'resources': [],
'groups': [],
'status': ''
}, attributes);
attrs.chat_status = 'offline';
this.set(attrs);
}
});
......
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