Merge pull request #674 from mpretty-cyro/fix/data-extraction-timestamp

Fixed a bug where the "DataExtractionNotification" messages weren't correctly setting their tmestamps
pull/677/head
Morgan Pretty 3 years ago committed by GitHub
commit a0e43875e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,7 +21,11 @@ extension MessageReceiver {
case .screenshot: return .infoScreenshotNotification
case .mediaSaved: return .infoMediaSavedNotification
}
}()
}(),
timestampMs: (
message.sentTimestamp.map { Int64($0) } ??
Int64(floor(Date().timeIntervalSince1970 * 1000))
)
).inserted(db)
}
}

Loading…
Cancel
Save