Video avatar fixes

This commit is contained in:
Ilya Laktyushin
2020-07-12 23:35:30 +03:00
parent 5a6951703a
commit 5896f73e4a
8 changed files with 68 additions and 18 deletions

View File

@@ -353,7 +353,7 @@ final class CallControllerNode: ViewControllerTracingNode, CallControllerNodePro
self.peer = peer
if let peerReference = PeerReference(peer), !peer.profileImageRepresentations.isEmpty {
let representations: [ImageRepresentationWithReference] = peer.profileImageRepresentations.map({ ImageRepresentationWithReference(representation: $0, reference: .avatar(peer: peerReference, resource: $0.resource)) })
self.imageNode.setSignal(chatAvatarGalleryPhoto(account: self.account, representations: representations, autoFetchFullSize: true))
self.imageNode.setSignal(chatAvatarGalleryPhoto(account: self.account, representations: representations, immediateThumbnailData: nil, autoFetchFullSize: true))
self.dimNode.isHidden = false
} else {
self.imageNode.setSignal(callDefaultBackground())