]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/core/users/user.model.ts
Fix updating boolean anonymous settings
[github/Chocobozzz/PeerTube.git] / client / src / app / core / users / user.model.ts
index 7c9569ed476396e80ef2e70caf30302d76f918bb..15a4f7f827fa1b2f455b26750d3a691794fb2a69 100644 (file)
@@ -131,8 +131,9 @@ export class User implements UserServerModel {
     }
   }
 
-  updateAccountAvatar (newAccountAvatar: Avatar) {
-    this.account.updateAvatar(newAccountAvatar)
+  updateAccountAvatar (newAccountAvatar?: Avatar) {
+    if (newAccountAvatar) this.account.updateAvatar(newAccountAvatar)
+    else this.account.resetAvatar()
   }
 
   isUploadDisabled () {