Bugfix. Make sure group gets inserted

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

Was previously in the wrong place.
This commit is contained in:
JC Brand 2018-03-27 13:16:25 +02:00
parent 1029aae215
commit e8718ec3d3
2 changed files with 683 additions and 585 deletions

1264
dist/converse.js vendored

File diff suppressed because it is too large Load Diff

View File

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