Emoji fixes

This commit is contained in:
Ilya Laktyushin 2022-07-17 02:16:53 +02:00
parent 60e88c2c6c
commit dbaf5d30d7
2 changed files with 2 additions and 2 deletions

View File

@ -509,7 +509,7 @@ final class InnerTextSelectionTipContainerNode: ASDisplayNode {
let iconSize = self.iconNode.image?.size ?? CGSize(width: 16.0, height: 16.0)
let text = self.text.replacingOccurrences(of: "#", with: "# ")
let text = self.text.replacingOccurrences(of: "#", with: "# ")
let attributedText = NSMutableAttributedString(attributedString: parseMarkdownIntoAttributedString(text, attributes: MarkdownAttributes(body: MarkdownAttributeSet(font: textFont, textColor: textColor), bold: MarkdownAttributeSet(font: boldTextFont, textColor: textColor), link: MarkdownAttributeSet(font: boldTextFont, textColor: accentColor), linkAttribute: { _ in
return nil
})))

View File

@ -324,7 +324,7 @@ private final class StickerPackContainer: ASDisplayNode {
}
let loadedStickerPacks = combineLatest(stickerPacks.map {
context.engine.stickers.loadedStickerPack(reference: $0, forceActualized: false)
context.engine.stickers.loadedStickerPack(reference: $0, forceActualized: true)
})
self.itemsDisposable = combineLatest(queue: Queue.mainQueue(), loadedStickerPacks, context.engine.data.get(TelegramEngine.EngineData.Item.Peer.Peer(id: context.account.peerId))).start(next: { [weak self] contents, peer in