make sure we have braces

pull/429/head
Ryan Tharp 6 years ago committed by Beaudan Brown
parent 3d40b55011
commit bbffa89308

@ -2102,9 +2102,12 @@
const profileAvatar = this.get('profileAvatar');
if (profileAvatar !== avatarPath || currentName !== name) {
// only update changed items
if (profileAvatar !== avatarPath)
if (profileAvatar !== avatarPath) {
this.set({ profileAvatar: avatarPath });
if (currentName !== name) this.set({ name });
}
if (currentName !== name) {
this.set({ name });
}
// save
await window.Signal.Data.updateConversation(this.id, this.attributes, {
Conversation: Whisper.Conversation,

Loading…
Cancel
Save