mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Various improvements
This commit is contained in:
@@ -876,6 +876,8 @@ public final class ChatEntityKeyboardInputNode: ChatInputNode {
|
||||
}))
|
||||
}
|
||||
},
|
||||
updateScrollingToItemGroup: {
|
||||
},
|
||||
chatPeerId: chatPeerId,
|
||||
peekBehavior: nil,
|
||||
customLayout: nil,
|
||||
@@ -1090,6 +1092,8 @@ public final class ChatEntityKeyboardInputNode: ChatInputNode {
|
||||
},
|
||||
updateSearchQuery: { _, _ in
|
||||
},
|
||||
updateScrollingToItemGroup: {
|
||||
},
|
||||
chatPeerId: chatPeerId,
|
||||
peekBehavior: stickerPeekBehavior,
|
||||
customLayout: nil,
|
||||
@@ -1111,11 +1115,13 @@ public final class ChatEntityKeyboardInputNode: ChatInputNode {
|
||||
var inputData = inputData
|
||||
inputData.gifs = gifs
|
||||
|
||||
let presentationData = context.sharedContext.currentPresentationData.with { $0 }
|
||||
|
||||
if let emojiSearchResult = emojiSearchResult {
|
||||
var emptySearchResults: EmojiPagerContentComponent.EmptySearchResults?
|
||||
if !emojiSearchResult.groups.contains(where: { !$0.items.isEmpty }) {
|
||||
emptySearchResults = EmojiPagerContentComponent.EmptySearchResults(
|
||||
text: "No emoji found", //strongSelf.presentationData.strings.EmojiSearch_SearchStatusesEmptyResult,
|
||||
text: presentationData.strings.EmojiSearch_SearchEmojiEmptyResult,
|
||||
iconFile: nil
|
||||
)
|
||||
}
|
||||
@@ -1861,6 +1867,8 @@ public final class EntityInputView: UIInputView, AttachmentTextInputPanelInputVi
|
||||
},
|
||||
updateSearchQuery: { _, _ in
|
||||
},
|
||||
updateScrollingToItemGroup: {
|
||||
},
|
||||
chatPeerId: nil,
|
||||
peekBehavior: nil,
|
||||
customLayout: nil,
|
||||
|
||||
Reference in New Issue
Block a user