Commit fe0034f1 authored by ichim-david's avatar ichim-david

Check also if subscription === to in order to correctly move the accepted...

Check also if subscription === to in order to correctly move the accepted contact subscription from pending to current
parent 63134858
......@@ -1320,7 +1320,7 @@
this.$el.addClass('requesting-xmpp-contact');
this.$el.html(this.request_template(item.toJSON()));
xmppchat.chatboxesview.openChat('controlbox');
} else if (subscription === 'both') {
} else if (subscription === 'both' || subscription === 'to') {
this.$el.addClass('current-xmpp-contact');
this.$el.html(this.template(item.toJSON()));
}
......@@ -1636,7 +1636,7 @@
} else if (ask === 'request') {
$contact_requests.after(view.render().el);
$contact_requests.after($contact_requests.siblings('dd.requesting-xmpp-contact').tsort(crit));
} else if (subscription === 'both') {
} else if (subscription === 'both' || subscription === 'to') {
if (!item.options.sorted) {
// this attribute will be true only after all of the elements have been added on the page
// at this point all offline
......
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