We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cda3995 + 8d86004 commit 9830e44Copy full SHA for 9830e44
app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationReactionOverlay.kt
@@ -810,10 +810,10 @@ class ConversationReactionOverlay : FrameLayout {
810
}
811
812
private val MessageRecord.subtitle: ((Context) -> CharSequence?)?
813
- get() = if (expiresIn <= 0) {
+ get() = if (expiresIn <= 0 || expireStarted <= 0) {
814
null
815
} else { context ->
816
- (expiresIn - (SnodeAPI.nowWithOffset - (expireStarted.takeIf { it > 0 } ?: timestamp)))
+ (expiresIn - (SnodeAPI.nowWithOffset - expireStarted))
817
.coerceAtLeast(0L)
818
.milliseconds
819
.toShortTwoPartString()
0 commit comments