mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Various improvements
This commit is contained in:
parent
7b8e64ca8a
commit
669151da80
96 changed files with 4038 additions and 1631 deletions
|
|
@ -181,11 +181,11 @@ func chatHistoryEntriesForView(
|
|||
}
|
||||
|
||||
if presentationData.largeEmoji, message.media.isEmpty {
|
||||
if messageIsElligibleForLargeCustomEmoji(message) {
|
||||
if messageIsEligibleForLargeCustomEmoji(message) {
|
||||
contentTypeHint = .animatedEmoji
|
||||
} else if stickersEnabled && message.text.count == 1, let _ = associatedData.animatedEmojiStickers[message.text.basicEmoji.0], (message.textEntitiesAttribute?.entities.isEmpty ?? true) {
|
||||
contentTypeHint = .animatedEmoji
|
||||
} else if messageIsElligibleForLargeEmoji(message) {
|
||||
} else if messageIsEligibleForLargeEmoji(message) {
|
||||
contentTypeHint = .animatedEmoji
|
||||
}
|
||||
}
|
||||
|
|
@ -317,11 +317,11 @@ func chatHistoryEntriesForView(
|
|||
|
||||
var contentTypeHint: ChatMessageEntryContentType = .generic
|
||||
if presentationData.largeEmoji, topMessage.media.isEmpty {
|
||||
if messageIsElligibleForLargeCustomEmoji(topMessage) {
|
||||
if messageIsEligibleForLargeCustomEmoji(topMessage) {
|
||||
contentTypeHint = .animatedEmoji
|
||||
} else if stickersEnabled && topMessage.text.count == 1, let _ = associatedData.animatedEmojiStickers[topMessage.text.basicEmoji.0] {
|
||||
contentTypeHint = .animatedEmoji
|
||||
} else if messageIsElligibleForLargeEmoji(topMessage) {
|
||||
} else if messageIsEligibleForLargeEmoji(topMessage) {
|
||||
contentTypeHint = .animatedEmoji
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue