 
     var user: User? {
         didSet {
-            if let user = user {
-                if !user.isInvalidated {
-                    updateAvatar()
-                }
-            } else {
-                updateAvatar()
-            }
+            updateAvatar()
         }
     }
 

    @IBOutlet weak var imageView: UIImageView!

    private func userAvatarURL() -> URL? {
        guard let username = user?.username else { return nil }
        guard let auth = AuthManager.isAuthenticated() else { return nil }
        guard let baseURL = auth.baseURL() else { return nil }
        guard let encodedUsername = username.addingPercentEncoding(withAllowedCharacters: CharacterSet.urlQueryAllowed) else { return nil }
        return URL(string: "\(baseURL)/avatar/\(encodedUsername)")
    }


    }

    private func setAvatarWithInitials() {
        guard let user = user, !user.isInvalidated else {
            labelInitials?.text = "?"
            backgroundColor = .black
            return
        }

        let username = user.username ?? "?"
        var initials = ""
        var color: UInt = 0x000000

