From acc19985f55099260c504f549b85576a6b61a427 Mon Sep 17 00:00:00 2001 From: sachaaaaa Date: Fri, 29 Nov 2019 15:12:04 +1100 Subject: [PATCH] allow removing picture when avatar set to null (currently only possible via mobile) --- js/models/conversations.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/models/conversations.js b/js/models/conversations.js index 156ef1f78..af7c85828 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -2312,9 +2312,8 @@ }); } - if (newProfile.avatar) { - await this.setProfileAvatar({ path: newProfile.avatar }); - } + // if set to null, it will show a jazzIcon + await this.setProfileAvatar({ path: newProfile.avatar }); await this.updateProfileName(); },