Commit 5a56fcc6 authored by JC Brand's avatar JC Brand

Roster/subscription bugfix.

parent aebd3b5b
......@@ -1167,7 +1167,8 @@ xmppchat.Roster = (function (_, $, console) {
(presence_type === 'unsubscribe')) {
return true;
} else if (presence_type === 'subscribe') {
if (ob.getItem(bare_jid)) {
item = ob.getItem(bare_jid);
if ((item) && (item.get('subscription') != 'none')) {
xmppchat.connection.roster.authorize(bare_jid);
} else {
ob.addRosterItem(bare_jid, 'none', 'request');
......
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