Always display the date in story viewer.

This commit is contained in:
Alex Hart
2022-09-29 10:20:47 -03:00
committed by Greyson Parrelli
parent 86a345a4f3
commit 1af576c157

View File

@@ -889,11 +889,7 @@ class StoryViewerPageFragment :
}
private fun presentDate(date: TextView, storyPost: StoryPost) {
val messageRecord = storyPost.conversationMessage.messageRecord
date.text = when {
messageRecord.isOutgoing && !messageRecord.isSent -> getString(R.string.StoriesLandingItem__sending)
else -> DateUtils.getBriefRelativeTimeSpanString(context, Locale.getDefault(), storyPost.dateInMilliseconds)
}
date.text = DateUtils.getBriefRelativeTimeSpanString(context, Locale.getDefault(), storyPost.dateInMilliseconds)
}
private fun presentSenderAvatar(senderAvatar: AvatarImageView, post: StoryPost) {