Bugfix. Messages were stored against buddy JID and not own JID
This commit is contained in:
parent
a33e370cec
commit
4ab6f28181
@ -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)
|
||||
------------------
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user