Use latest matrix-rust-sdk and enable encryption

This commit is contained in:
ganfra
2022-11-03 10:27:57 +01:00
parent 3ed12f4871
commit 66dc61cc3e
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