Add default timestamp position

This commit is contained in:
Florian Renaud
2023-08-24 11:38:14 +02:00
parent 23b8573ad4
commit 3c8cf0ef67
2 changed files with 9 additions and 2 deletions

View File

@@ -366,7 +366,7 @@ private fun MessageEventBubbleContent(
is TimelineItemVideoContent,
is TimelineItemLocationContent -> TimestampPosition.Above
is TimelineItemPollContent -> TimestampPosition.Below
else -> TimestampPosition.Aligned
else -> TimestampPosition.Default
}
val replyToDetails = event.inReplyTo as? InReplyTo.Ready

View File

@@ -30,5 +30,12 @@ enum class TimestampPosition {
/**
* Timestamp should always be rendered below the timeline event content (eg. poll).
*/
Below,
Below;
companion object {
/**
* Default timestamp position for timeline event contents.
*/
val Default: TimestampPosition = Aligned
}
}