mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-30 13:35:18 +00:00
Don't start DaR timer view until it has actually started
This commit is contained in:
parent
246e8bf2a2
commit
a326c47e56
@ -346,8 +346,7 @@ class VisibleMessageView : LinearLayout {
|
|||||||
|
|
||||||
private fun updateExpirationTimer(message: MessageRecord) {
|
private fun updateExpirationTimer(message: MessageRecord) {
|
||||||
if (!message.isOutgoing) binding.messageStatusTextView.bringToFront()
|
if (!message.isOutgoing) binding.messageStatusTextView.bringToFront()
|
||||||
val expireStarted = message.expireStarted.takeIf { it > 0 } ?: SnodeAPI.nowWithOffset
|
binding.expirationTimerView.setExpirationTime(message.expireStarted, message.expiresIn)
|
||||||
binding.expirationTimerView.setExpirationTime(expireStarted, message.expiresIn)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun handleIsSelectedChanged() {
|
private fun handleIsSelectedChanged() {
|
||||||
|
Loading…
Reference in New Issue
Block a user