Commit 37f3a95a authored by JC Brand's avatar JC Brand

For uniqueness, we need both JIDs for messages localStorage Fixes #49

parent 4ab6f281
Changelog
=========
0.6.3 (Unreleased)
0.6.3 (2013-09-12)
------------------
NB: This release contains an important security fix. Please don't use older
......
......@@ -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'+converse.bare_jid));
hex_sha1('converse.messages'+this.get('jid')+converse.bare_jid));
this.set({
'user_id' : Strophe.getNodeFromJid(this.get('jid')),
'box_id' : hex_sha1(this.get('jid')),
......
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