Fix alignment issues for single line timestamps.

This commit is contained in:
Lucio Maciel
2021-08-16 18:56:06 -03:00
committed by Greyson Parrelli
parent 31e0f3edfb
commit 0599f76ed5
7 changed files with 43 additions and 30 deletions

View File

@@ -91,18 +91,18 @@ fun MessageRecord.hasBigImageLinkPreview(context: Context): Boolean {
}
fun MessageRecord.isTextOnly(context: Context): Boolean {
return !(
!isMms ||
isViewOnceMessage() ||
hasLinkPreview() ||
hasQuote() ||
hasExtraText() ||
hasDocument() ||
hasThumbnail() ||
hasAudio() ||
hasLocation() ||
hasSharedContact() ||
hasSticker() ||
isCaptionlessMms(context)
)
return !isMms ||
(
!isViewOnceMessage() &&
!hasLinkPreview() &&
!hasQuote() &&
!hasExtraText() &&
!hasDocument() &&
!hasThumbnail() &&
!hasAudio() &&
!hasLocation() &&
!hasSharedContact() &&
!hasSticker() &&
!isCaptionlessMms(context)
)
}