Pārlūkot izejas kodu

Bugfix. Make sure group gets inserted

when it's created due to a new contact being added.

Was previously in the wrong place.
JC Brand 7 gadi atpakaļ
vecāks
revīzija
e8718ec3d3
2 mainītis faili ar 48 papildinājumiem un 527 dzēšanām
  1. 47 526
      dist/converse.js
  2. 1 1
      src/converse-rosterview.js

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 47 - 526
dist/converse.js


+ 1 - 1
src/converse-rosterview.js

@@ -845,7 +845,6 @@
                 onContactAdded (contact) {
                     this.addRosterContact(contact).update();
                     this.updateFilter();
-                    this.sortAndPositionAllItems();
                 },
 
                 onContactChange (contact) {
@@ -895,6 +894,7 @@
 
                 addContactToGroup (contact, name, options) {
                     this.getGroup(name).contacts.add(contact, options);
+                    this.sortAndPositionAllItems();
                 },
 
                 addExistingContact (contact, options) {

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels