Use latest matrix-rust-sdk and enable encryption

This commit is contained in:
ganfra 2022-11-03 10:27:57 +01:00
parent 87e6bd1210
commit 30665b2594
3 changed files with 13 additions and 9 deletions

View file

@ -33,7 +33,7 @@ class LastMessageFormatter(
fun format(timestamp: Long?): String {
if (timestamp == null) return ""
val now: Instant = clock.now()
val tsInstant = Instant.fromEpochSeconds(timestamp)
val tsInstant = Instant.fromEpochMilliseconds(timestamp)
val nowDateTime = now.toLocalDateTime(TimeZone.currentSystemDefault())
val tsDateTime = tsInstant.toLocalDateTime(TimeZone.currentSystemDefault())
val isSameDay = nowDateTime.date == tsDateTime.date