fix an issue where in some cases the new client will be marked as old ones

pull/941/head
Ryan Zhao 2 years ago
parent c2f6c3c8ea
commit 49b22ab98e

@ -67,7 +67,10 @@ public class Message: Codable {
guard
let threadId: String = threadId,
let disappearingMessagesConfiguration = try? DisappearingMessagesConfiguration.fetchOne(db, id: threadId)
else { return }
else {
proto.setExpirationTimer(0)
return
}
proto.setExpirationTimer(UInt32(disappearingMessagesConfiguration.durationSeconds))
proto.setLastDisappearingMessageChangeTimestamp(UInt64(disappearingMessagesConfiguration.lastChangeTimestampMs))

Loading…
Cancel
Save