do not trigger group update if name or avatar did not change

pull/1293/head
Audric Ackermann 5 years ago
parent 582499be25
commit a6fa3386c1
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -62,12 +62,14 @@
return this; return this;
}, },
onSubmit(groupName, avatar) { onSubmit(groupName, avatar) {
window.MediumGroups.initiateGroupUpdate( if(groupName !== this.groupName || avatar !== this.avatarPath) {
this.groupId, window.MediumGroups.initiateGroupUpdate(
groupName, this.groupId,
this.members, groupName,
avatar this.members,
); avatar
);
}
}, },
close() { close() {
this.remove(); this.remove();

Loading…
Cancel
Save