Use latest matrix-rust-sdk and enable encryption
This commit is contained in:
parent
87e6bd1210
commit
30665b2594
3 changed files with 13 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue