Fix build

This commit is contained in:
Ilya Laktyushin 2023-01-23 16:08:59 +04:00
parent 68cf784f8b
commit 3a10dd64fc
3 changed files with 3 additions and 2 deletions

View File

@ -1652,7 +1652,7 @@ final class ChatListSearchListPaneNode: ASDisplayNode, ChatListSearchPaneNode {
let filteredPeer: (EnginePeer, EnginePeer) -> Bool = { peer, accountPeer in let filteredPeer: (EnginePeer, EnginePeer) -> Bool = { peer, accountPeer in
if let peerType = requestPeerType { if let peerType = requestPeerType {
guard !peer.isDeleted else { guard !peer.isDeleted && peer.id != context.account.peerId else {
return false return false
} }
switch peerType { switch peerType {

View File

@ -1744,7 +1744,7 @@ public final class ChatListNode: ListView {
isEmpty = false isEmpty = false
return true return true
case let .peerType(peerType): case let .peerType(peerType):
if let peer = peer.peer, !peer.isDeleted { if let peer = peer.peer, !peer.isDeleted && peer.id != context.account.peerId {
switch peerType { switch peerType {
case let .user(userType): case let .user(userType):
if case let .user(user) = peer { if case let .user(user) = peer {

View File

@ -336,6 +336,7 @@ public final class EmojiSearchContent: ASDisplayNode, EntitySearchContainerNode
} }
self.onCancel?() self.onCancel?()
}, },
onScroll: {},
chatPeerId: nil, chatPeerId: nil,
peekBehavior: nil, peekBehavior: nil,
customLayout: nil, customLayout: nil,