UI improvements and API update

This commit is contained in:
Ali
2022-06-02 14:56:07 +04:00
parent e55e22e074
commit dd366395c1
9 changed files with 74 additions and 69 deletions

View File

@@ -155,7 +155,7 @@ public func generateChatInputTextEntities(_ text: NSAttributedString, maxAnimate
if !emoji.isEmpty && emoji.isSingleEmoji {
let mappedRange = NSRange(substringRange, in: text.string)
entities.append(MessageTextEntity(range: mappedRange.lowerBound ..< mappedRange.upperBound, type: .AnimatedEmoji))
entities.append(MessageTextEntity(range: mappedRange.lowerBound ..< mappedRange.upperBound, type: .AnimatedEmoji(nil)))
count += 1
if count >= maxAnimatedEmojisInText {