mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
bug fixes
This commit is contained in:
parent
79d819a76a
commit
d75ebff319
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ import AVFoundation
|
|||
extension Character {
|
||||
var isSimpleEmoji: Bool {
|
||||
guard let firstScalar = unicodeScalars.first else { return false }
|
||||
if #available(iOS 10.2, *) {
|
||||
if #available(iOS 10.2, macOS 10.12.2, *) {
|
||||
return (firstScalar.properties.isEmoji && firstScalar.value > 0x238C) || firstScalar.isEmoji
|
||||
} else {
|
||||
return firstScalar.isEmoji
|
||||
|
|
@ -13,7 +13,7 @@ extension Character {
|
|||
}
|
||||
|
||||
var isCombinedIntoEmoji: Bool {
|
||||
if #available(iOS 10.2, *) {
|
||||
if #available(iOS 10.2, macOS 10.12.2, *) {
|
||||
return self.unicodeScalars.count > 1 && self.unicodeScalars.first?.properties.isEmoji ?? false
|
||||
} else {
|
||||
return self.unicodeScalars.count > 1 && self.unicodeScalars.first?.isEmoji ?? false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue