diff --git a/js/models/conversations.js b/js/models/conversations.js index d5b0c31bb..434eb4fcc 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -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,