Add default timestamp position
This commit is contained in:
parent
2a29c67b96
commit
20bd7764ef
2 changed files with 9 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue