Selaa lähdekoodia

Don't open the controlbox on requesting contacts.

Can get annoying very quickly
JC Brand 8 vuotta sitten
vanhempi
commit
c3b2a913bb
3 muutettua tiedostoa jossa 1 lisäystä ja 4 poistoa
  1. 1 0
      docs/CHANGES.md
  2. 0 3
      spec/controlbox.js
  3. 0 1
      src/converse-rosterview.js

+ 1 - 0
docs/CHANGES.md

@@ -9,6 +9,7 @@
 - Bugfix: Trying to save data on the `ControlBox` model before `ChatBoxes`
   collection has its `browserStorage` configured.
   Causes `Error: A "url" property or function must be specified`. [jcbrand]
+- Don't open the controlbox on contact requests. [jcbrand]
 
 ## 2.0.1 (2016-11-07)
 - #203 New configuration setting [muc_domain](https://conversejs.org/docs/html/configuration.html#muc_domain) [jcbrand]

+ 0 - 3
spec/controlbox.js

@@ -926,9 +926,6 @@
                         fullname: mock.req_names[i]
                     });
                     expect(converse.rosterview.update).toHaveBeenCalled();
-                    // When a requesting contact is added, the controlbox must
-                    // be opened.
-                    expect(converse.controlboxtoggle.showControlBox).toHaveBeenCalled();
                 }
                 // Check that they are sorted alphabetically
                 children = converse.rosterview.get('Contact requests').$el.siblings('dd.requesting-xmpp-contact').children('span');

+ 0 - 1
src/converse-rosterview.js

@@ -592,7 +592,6 @@
                                 'allow_chat_pending_contacts': converse.allow_chat_pending_contacts
                             })
                         ));
-                        converse.controlboxtoggle.showControlBox();
                     } else if (subscription === 'both' || subscription === 'to') {
                         this.$el.addClass('current-xmpp-contact');
                         this.$el.removeClass(_.without(['both', 'to'], subscription)[0]).addClass(subscription);