mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Group boosts
This commit is contained in:
@@ -885,9 +885,16 @@ public final class ChatEntityKeyboardInputNode: ChatInputNode {
|
||||
let remotePacksSignal: Signal<(sets: FoundStickerSets, isFinalResult: Bool), NoError>
|
||||
if hasPremium {
|
||||
remoteSignal = context.engine.stickers.searchEmoji(emojiString: Array(allEmoticons.keys))
|
||||
remotePacksSignal = .single((FoundStickerSets(), false)) |> then(context.engine.stickers.searchEmojiSetsRemotely(query: query) |> map {
|
||||
($0, true)
|
||||
})
|
||||
remotePacksSignal = context.engine.stickers.searchEmojiSets(query: query)
|
||||
|> mapToSignal { localResult in
|
||||
return .single((localResult, false))
|
||||
|> then(
|
||||
context.engine.stickers.searchEmojiSetsRemotely(query: query)
|
||||
|> map { remoteResult in
|
||||
return (localResult.merge(with: remoteResult), true)
|
||||
}
|
||||
)
|
||||
}
|
||||
} else {
|
||||
remoteSignal = .single(([], true))
|
||||
remotePacksSignal = .single((FoundStickerSets(), true))
|
||||
|
||||
Reference in New Issue
Block a user