Group boosts

This commit is contained in:
Ilya Laktyushin
2024-02-01 12:29:07 +04:00
parent 2716a936bf
commit 1b2b7dc403
120 changed files with 5295 additions and 887 deletions

View File

@@ -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))