Don't start DaR timer view until it has actually started

This commit is contained in:
Andrew 2024-02-03 10:12:46 +10:30
parent 246e8bf2a2
commit a326c47e56

View File

@ -346,8 +346,7 @@ class VisibleMessageView : LinearLayout {
private fun updateExpirationTimer(message: MessageRecord) {
if (!message.isOutgoing) binding.messageStatusTextView.bringToFront()
val expireStarted = message.expireStarted.takeIf { it > 0 } ?: SnodeAPI.nowWithOffset
binding.expirationTimerView.setExpirationTime(expireStarted, message.expiresIn)
binding.expirationTimerView.setExpirationTime(message.expireStarted, message.expiresIn)
}
private fun handleIsSelectedChanged() {