mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-03-22 15:15:38 +00:00
Fixed heart emoji detection & normalization for emoji keywords
This commit is contained in:
@@ -386,10 +386,10 @@ public final class ChatMessageItem: ListViewItem, CustomStringConvertible {
|
||||
}
|
||||
}
|
||||
|
||||
if viewClassName == ChatMessageBubbleItemNode.self && self.presentationData.largeEmoji && messageIsElligibleForLargeEmoji(self.message) {
|
||||
if let _ = self.associatedData.animatedEmojiStickers[self.message.text.basicEmoji.0] {
|
||||
if viewClassName == ChatMessageBubbleItemNode.self && self.presentationData.largeEmoji {
|
||||
if self.message.text.count == 1, let _ = self.associatedData.animatedEmojiStickers[self.message.text.basicEmoji.0] {
|
||||
viewClassName = ChatMessageAnimatedStickerItemNode.self
|
||||
} else {
|
||||
} else if messageIsElligibleForLargeEmoji(self.message) {
|
||||
viewClassName = ChatMessageStickerItemNode.self
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,8 +19,6 @@ extension UnicodeScalar {
|
||||
return true
|
||||
case 0x1f004:
|
||||
return true
|
||||
case 0x2764:
|
||||
return true
|
||||
case 0x270b, 0x2728:
|
||||
return true
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user