mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 10:20:25 +01:00
Fix alignment issues for single line timestamps.
This commit is contained in:
committed by
Greyson Parrelli
parent
31e0f3edfb
commit
0599f76ed5
@@ -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)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user