This commit is contained in:
Ryan Zhao 2022-08-11 15:21:19 +10:00
parent 645f8e1d24
commit 88e419aac0
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ public final class MessageSender {
)
.done(on: DispatchQueue.global(qos: .default)) { responseInfo, data in
message.openGroupServerMessageId = UInt64(data.id)
let serverTimestampMs: UInt64? = (data.posted == nil) ? nil : UInt64(floor(data.posted! * 1000))
let serverTimestampMs: UInt64? = data.posted.map { UInt64(floor($0 * 1000)) }
dependencies.storage.write { db in
// The `posted` value is in seconds but we sent it in ms so need that for de-duping