Commit 931be34f authored by JC Brand's avatar JC Brand

Make the status session storage user specific.

parent c53da4c1
......@@ -134,7 +134,7 @@ var xmppchat = (function ($, console) {
var chat_content,
value;
if (jid === 'online-users-container') {
value = jarnxmpp.Storage.get('xmpp-status') || 'online';
value = jarnxmpp.Storage.get(xmppchat.username+'-xmpp-status') || 'online';
$(chat).find('#select-xmpp-status').val(value);
} else {
chat_content = $(chat).find('.chat-content');
......@@ -431,6 +431,6 @@ $(document).ready(function () {
value = event.target.value;
$(document).trigger('xmppchat.send_presence', [jid, value]);
jarnxmpp.Storage.set('xmpp-status', value);
jarnxmpp.Storage.set(xmppchat.username+'-xmpp-status', value);
});
});
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