Add default timestamp position

This commit is contained in:
Florian Renaud 2023-08-24 11:38:14 +02:00
parent 2a29c67b96
commit 20bd7764ef
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
}
}