diff --git a/SessionUIKit/Components/ProfilePictureView.swift b/SessionUIKit/Components/ProfilePictureView.swift index e8b9350a6..1ffe575a7 100644 --- a/SessionUIKit/Components/ProfilePictureView.swift +++ b/SessionUIKit/Components/ProfilePictureView.swift @@ -119,6 +119,12 @@ public final class ProfilePictureView: UIView { imageContainerView.layer.cornerRadius = (clipsToBounds ? (size.multiImageSize / 2) : 0) } } + public override var isHidden: Bool { + didSet { + widthConstraint.constant = (isHidden ? 0 : size.viewSize) + heightConstraint.constant = (isHidden ? 0 : size.viewSize) + } + } // MARK: - Constraints