mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Various improvements
This commit is contained in:
@@ -79,8 +79,15 @@ func inputContextPanelForChatPresentationIntefaceState(_ chatPresentationInterfa
|
||||
}
|
||||
|
||||
switch inputQueryResult {
|
||||
case let .stickers(results):
|
||||
if !results.isEmpty {
|
||||
case let .stickers(unfilteredResults):
|
||||
if !unfilteredResults.isEmpty {
|
||||
var results: [FoundStickerItem] = []
|
||||
for result in unfilteredResults {
|
||||
if !results.contains(where: { $0.file.fileId == result.file.fileId }) {
|
||||
results.append(result)
|
||||
}
|
||||
}
|
||||
|
||||
let query = chatPresentationInterfaceState.interfaceState.composeInputState.inputText.string
|
||||
|
||||
if let currentPanel = currentPanel as? InlineReactionSearchPanel {
|
||||
|
||||
Reference in New Issue
Block a user