Skip to content

Commit 9830e44

Browse files
Merge pull request #1334 from session-foundation/disappearing-message-fix
Fixes disappearing timer showing when it should not
2 parents cda3995 + 8d86004 commit 9830e44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationReactionOverlay.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,10 +810,10 @@ class ConversationReactionOverlay : FrameLayout {
810810
}
811811

812812
private val MessageRecord.subtitle: ((Context) -> CharSequence?)?
813-
get() = if (expiresIn <= 0) {
813+
get() = if (expiresIn <= 0 || expireStarted <= 0) {
814814
null
815815
} else { context ->
816-
(expiresIn - (SnodeAPI.nowWithOffset - (expireStarted.takeIf { it > 0 } ?: timestamp)))
816+
(expiresIn - (SnodeAPI.nowWithOffset - expireStarted))
817817
.coerceAtLeast(0L)
818818
.milliseconds
819819
.toShortTwoPartString()

0 commit comments

Comments
 (0)