Remove test code

This commit is contained in:
Ilya Laktyushin 2023-01-23 21:21:46 +04:00
parent 29c7eb0cc0
commit e695f61bc7
2 changed files with 2 additions and 2 deletions

View File

@ -1293,7 +1293,7 @@ class ChatListItemNode: ItemListRevealOptionsItemNode {
}
self.avatarNode.setPeer(context: item.context, theme: item.presentationData.theme, peer: peer, overrideImage: overrideImage, emptyColor: item.presentationData.theme.list.mediaPlaceholderColor, clipStyle: isForum ? .roundedRect : .round, synchronousLoad: synchronousLoads, displayDimensions: CGSize(width: 60.0, height: 60.0))
if (peer.isPremium || "".isEmpty) && peer.id != item.context.account.peerId {
if peer.isPremium && peer.id != item.context.account.peerId {
let context = item.context
self.cachedDataDisposable.set((context.account.postbox.peerView(id: peer.id)
|> deliverOnMainQueue).start(next: { [weak self] peerView in

View File

@ -111,7 +111,7 @@ final class ChatAvatarNavigationNode: ASDisplayNode {
self.context = context
self.avatarNode.setPeer(context: context, theme: theme, peer: peer, authorOfMessage: authorOfMessage, overrideImage: overrideImage, emptyColor: emptyColor, clipStyle: clipStyle, synchronousLoad: synchronousLoad, displayDimensions: displayDimensions, storeUnrounded: storeUnrounded)
if let peer = peer, peer.isPremium || "".isEmpty {
if let peer = peer, peer.isPremium {
self.cachedDataDisposable.set((context.account.postbox.peerView(id: peer.id)
|> deliverOnMainQueue).start(next: { [weak self] peerView in
guard let strongSelf = self else {