Commit 47380d08 authored by JC Brand's avatar JC Brand

Bugfix. Only unauthorise user once removed from the roster.

parent 588825e0
......@@ -954,9 +954,10 @@
"Remove": function() {
var bare_jid = that.model.get('bare_jid');
$(this).dialog( "close" );
xmppchat.connection.roster.unauthorize(that.model.get('jid'));
xmppchat.roster.remove(bare_jid);
xmppchat.connection.roster.remove(bare_jid);
xmppchat.connection.roster.remove(bare_jid, function (iq) {
xmppchat.connection.roster.unauthorize(bare_jid);
xmppchat.roster.remove(bare_jid);
});
},
"Cancel": function() {
$(this).dialog( "close" );
......@@ -970,7 +971,7 @@
xmppchat.connection.roster.authorize(jid);
xmppchat.connection.roster.add(jid, this.model.get('fullname'), [], function (iq) {
xmppchat.connection.roster.subscribe(jid);
}, this);
});
},
declineRequest: function () {
......
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