clean
This commit is contained in:
parent
645f8e1d24
commit
88e419aac0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue