Video avatar fixes

This commit is contained in:
Ilya Laktyushin 2020-07-10 20:22:16 +03:00
parent 13464f8dfd
commit 068ba88f46

View File

@ -1312,9 +1312,9 @@ final class PeerInfoEditingAvatarOverlayNode: ASDisplayNode {
} else { } else {
var immediately = self.currentRepresentation == nil var immediately = self.currentRepresentation == nil
if isEditing { if isEditing {
immediately = peer.profileImageRepresentations.isEmpty immediately = immediately || peer.profileImageRepresentations.isEmpty
iconHidden = immediately iconHidden = peer.profileImageRepresentations.isEmpty
overlayHidden = immediately overlayHidden = peer.profileImageRepresentations.isEmpty
} else { } else {
iconHidden = true iconHidden = true
overlayHidden = true overlayHidden = true