Do not jumbo styled emojis.

This commit is contained in:
Cody Henthorne
2023-07-18 16:18:11 -04:00
committed by Nicholas
parent 4910050891
commit 7375a9e06b
2 changed files with 8 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ fun MessageRecord.isBorderless(context: Context): Boolean {
}
fun MessageRecord.hasNoBubble(context: Context): Boolean =
hasSticker() || isBorderless(context) || (isTextOnly(context) && isJumbomoji(context))
hasSticker() || isBorderless(context) || (isTextOnly(context) && isJumbomoji(context) && messageRanges?.rangesList?.isEmpty() == true)
fun MessageRecord.hasOnlyThumbnail(context: Context): Boolean {
return hasThumbnail() &&