mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Fixed heart emoji detection for haptic
This commit is contained in:
@@ -790,7 +790,9 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
|
||||
|> deliverOnMainQueue
|
||||
}
|
||||
|
||||
if self.item?.message.text.hasPrefix("\u{2764}") ?? false {
|
||||
|
||||
|
||||
if let text = self.item?.message.text, let firstScalar = text.unicodeScalars.first, firstScalar.value == 0x2764 {
|
||||
let _ = startTime.start(next: { [weak self] time in
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user