mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 03:09:56 +00:00
Merge commit '27fdb815dea2bb1f71e3714635e72b0d5ce02eb7'
This commit is contained in:
commit
ddd7bd7457
@ -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
|
||||
|
||||
@ -302,7 +302,7 @@ public func resendMessages(account: Account, messageIds: [MessageId]) -> Signal<
|
||||
}
|
||||
}
|
||||
|
||||
if let forwardSource {
|
||||
if let forwardSource = forwardSource {
|
||||
messages.append(.forward(source: forwardSource, threadId: nil, grouping: .auto, attributes: filteredAttributes, correlationId: nil))
|
||||
} else {
|
||||
messages.append(.message(text: message.text, attributes: filteredAttributes, inlineStickers: [:], mediaReference: message.media.first.flatMap(AnyMediaReference.standalone), replyToMessageId: replyToMessageId, localGroupingKey: message.groupingKey, correlationId: nil, bubbleUpEmojiOrStickersets: bubbleUpEmojiOrStickersets))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user