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;
},
onSubmit(groupName, avatar) {
window.MediumGroups.initiateGroupUpdate(
this.groupId,
groupName,
this.members,
avatar
);
if(groupName !== this.groupName || avatar !== this.avatarPath) {
window.MediumGroups.initiateGroupUpdate(
this.groupId,
groupName,
this.members,
avatar
);
}
},
close() {
this.remove();

Loading…
Cancel
Save