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
if let peerType = requestPeerType {
guard !peer.isDeleted else {
guard !peer.isDeleted && peer.id != context.account.peerId else {
return false
}
switch peerType {

View File

@ -1744,7 +1744,7 @@ public final class ChatListNode: ListView {
isEmpty = false
return true
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 {
case let .user(userType):
if case let .user(user) = peer {

View File

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