Commit 4ab6f281 authored by JC Brand's avatar JC Brand

Bugfix. Messages were stored against buddy JID and not own JID

parent a33e370c
Changelog Changelog
========= =========
0.6.2 (Unreleased) 0.6.3 (Unreleased)
------------------ ------------------
NB: This release contains an important security fix. Please don't use older
versions of the 0.6.x branch.
- French translations. [tdesvenain] - French translations. [tdesvenain]
- Bugfix: Messages were stored against buddy JID and not own JID. [jcbrand]
0.6.2 (2013-08-29) 0.6.2 (2013-08-29)
------------------ ------------------
......
...@@ -277,7 +277,7 @@ ...@@ -277,7 +277,7 @@
if (this.get('box_id') !== 'controlbox') { if (this.get('box_id') !== 'controlbox') {
this.messages = new converse.Messages(); this.messages = new converse.Messages();
this.messages.localStorage = new Backbone.LocalStorage( this.messages.localStorage = new Backbone.LocalStorage(
hex_sha1('converse.messages'+this.get('jid'))); hex_sha1('converse.messages'+converse.bare_jid));
this.set({ this.set({
'user_id' : Strophe.getNodeFromJid(this.get('jid')), 'user_id' : Strophe.getNodeFromJid(this.get('jid')),
'box_id' : hex_sha1(this.get('jid')), 'box_id' : hex_sha1(this.get('jid')),
...@@ -2686,7 +2686,7 @@ ...@@ -2686,7 +2686,7 @@
// Set up the roster // Set up the roster
this.roster = new this.RosterItems(); this.roster = new this.RosterItems();
this.roster.localStorage = new Backbone.LocalStorage( this.roster.localStorage = new Backbone.LocalStorage(
hex_sha1('converse.rosteritems-'+this.bare_jid)); hex_sha1('converse.rosteritems-'+converse.bare_jid));
this.connection.roster.registerCallback( this.connection.roster.registerCallback(
$.proxy(this.roster.rosterHandler, this.roster), $.proxy(this.roster.rosterHandler, this.roster),
null, 'presence', null); null, 'presence', null);
......
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