|
@@ -2486,7 +2486,7 @@
|
|
|
|
|
|
this.$el.addClass(item.get('chat_status'));
|
|
this.$el.addClass(item.get('chat_status'));
|
|
|
|
|
|
- if ((ask === 'subscribe') && (subscription == 'none')) {
|
|
|
|
|
|
+ if (ask === 'subscribe') {
|
|
this.$el.addClass('pending-xmpp-contact');
|
|
this.$el.addClass('pending-xmpp-contact');
|
|
this.$el.html(this.pending_template(item.toJSON()));
|
|
this.$el.html(this.pending_template(item.toJSON()));
|
|
} else if (requesting === true) {
|
|
} else if (requesting === true) {
|
|
@@ -2900,6 +2900,13 @@
|
|
if ((ask === 'subscribe') && (subscription == 'none')) {
|
|
if ((ask === 'subscribe') && (subscription == 'none')) {
|
|
$pending_contacts.after(view.render().el);
|
|
$pending_contacts.after(view.render().el);
|
|
$pending_contacts.after($pending_contacts.siblings('dd.pending-xmpp-contact').tsort(crit));
|
|
$pending_contacts.after($pending_contacts.siblings('dd.pending-xmpp-contact').tsort(crit));
|
|
|
|
+ } else if ((ask === 'subscribe') && (subscription == 'from')) {
|
|
|
|
+ // TODO: We have accepted an incoming subscription
|
|
|
|
+ // request and (automatically) made our own subscription request back.
|
|
|
|
+ // It would be useful to update the roster here to show
|
|
|
|
+ // things are happening... (see docs/DEVELOPER.rst)
|
|
|
|
+ $pending_contacts.after(view.render().el);
|
|
|
|
+ $pending_contacts.after($pending_contacts.siblings('dd.pending-xmpp-contact').tsort(crit));
|
|
} else if (requesting === true) {
|
|
} else if (requesting === true) {
|
|
$contact_requests.after(view.render().el);
|
|
$contact_requests.after(view.render().el);
|
|
$contact_requests.after($contact_requests.siblings('dd.requesting-xmpp-contact').tsort(crit));
|
|
$contact_requests.after($contact_requests.siblings('dd.requesting-xmpp-contact').tsort(crit));
|