mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Update jumbomoji processing and downloading.
This commit is contained in:
@@ -612,7 +612,7 @@ public abstract class MessageRecord extends DisplayRecord {
|
||||
if (isJumboji == null) {
|
||||
if (getBody().length() <= EmojiSource.getLatest().getMaxEmojiLength() * JumboEmoji.MAX_JUMBOJI_COUNT) {
|
||||
EmojiParser.CandidateList candidates = EmojiProvider.getCandidates(getDisplayBody(context));
|
||||
isJumboji = candidates != null && candidates.allEmojis && candidates.size() <= JumboEmoji.MAX_JUMBOJI_COUNT;
|
||||
isJumboji = candidates != null && candidates.allEmojis && candidates.size() <= JumboEmoji.MAX_JUMBOJI_COUNT && (candidates.hasJumboForAll() || JumboEmoji.canDownloadJumbo(context));
|
||||
} else {
|
||||
isJumboji = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user