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

This commit is contained in:
JC Brand 2013-09-12 15:24:56 +02:00
parent a33e370cec
commit 4ab6f28181
2 changed files with 7 additions and 3 deletions

View File

@ -1,10 +1,14 @@
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]
- Bugfix: Messages were stored against buddy JID and not own JID. [jcbrand]
0.6.2 (2013-08-29)
------------------

View File

@ -277,7 +277,7 @@
if (this.get('box_id') !== 'controlbox') {
this.messages = new converse.Messages();
this.messages.localStorage = new Backbone.LocalStorage(
hex_sha1('converse.messages'+this.get('jid')));
hex_sha1('converse.messages'+converse.bare_jid));
this.set({
'user_id' : Strophe.getNodeFromJid(this.get('jid')),
'box_id' : hex_sha1(this.get('jid')),
@ -2686,7 +2686,7 @@
// Set up the roster
this.roster = new this.RosterItems();
this.roster.localStorage = new Backbone.LocalStorage(
hex_sha1('converse.rosteritems-'+this.bare_jid));
hex_sha1('converse.rosteritems-'+converse.bare_jid));
this.connection.roster.registerCallback(
$.proxy(this.roster.rosterHandler, this.roster),
null, 'presence', null);