瀏覽代碼

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 年之前
父節點
當前提交
e8718ec3d3
共有 2 個文件被更改,包括 48 次插入527 次删除
  1. 47 526
      dist/converse.js
  2. 1 1
      src/converse-rosterview.js

文件差異過大導致無法顯示
+ 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) {

部分文件因文件數量過多而無法顯示