From 3a10dd64fcab5763f33f0fc355e823c3a38fac0d Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Mon, 23 Jan 2023 16:08:59 +0400 Subject: [PATCH] Fix build --- submodules/ChatListUI/Sources/ChatListSearchListPaneNode.swift | 2 +- submodules/ChatListUI/Sources/Node/ChatListNode.swift | 2 +- .../Components/EntityKeyboard/Sources/EmojiSearchContent.swift | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/submodules/ChatListUI/Sources/ChatListSearchListPaneNode.swift b/submodules/ChatListUI/Sources/ChatListSearchListPaneNode.swift index 817fec867f..ce4fe06b48 100644 --- a/submodules/ChatListUI/Sources/ChatListSearchListPaneNode.swift +++ b/submodules/ChatListUI/Sources/ChatListSearchListPaneNode.swift @@ -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 { diff --git a/submodules/ChatListUI/Sources/Node/ChatListNode.swift b/submodules/ChatListUI/Sources/Node/ChatListNode.swift index 19cfa5abe3..b896f7b468 100644 --- a/submodules/ChatListUI/Sources/Node/ChatListNode.swift +++ b/submodules/ChatListUI/Sources/Node/ChatListNode.swift @@ -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 { diff --git a/submodules/TelegramUI/Components/EntityKeyboard/Sources/EmojiSearchContent.swift b/submodules/TelegramUI/Components/EntityKeyboard/Sources/EmojiSearchContent.swift index 59f7560b3d..2c3483b3ca 100644 --- a/submodules/TelegramUI/Components/EntityKeyboard/Sources/EmojiSearchContent.swift +++ b/submodules/TelegramUI/Components/EntityKeyboard/Sources/EmojiSearchContent.swift @@ -336,6 +336,7 @@ public final class EmojiSearchContent: ASDisplayNode, EntitySearchContainerNode } self.onCancel?() }, + onScroll: {}, chatPeerId: nil, peekBehavior: nil, customLayout: nil,