fix issues that the expiresStartAtMs not being set correctly

This commit is contained in:
Ryan Zhao 2023-09-25 16:45:44 +10:00
parent 33ef2b0920
commit 01671438d5
2 changed files with 2 additions and 4 deletions

View File

@ -194,10 +194,7 @@ public extension Message {
.reduce(nil) { prev, variant in
guard prev == nil else { return prev }
let message: Message? = variant.messageType.fromProto(proto, sender: sender)
message?.attachDisappearingMessagesConfiguration(from: proto)
return message
return variant.messageType.fromProto(proto, sender: sender)
}
}

View File

@ -154,6 +154,7 @@ public enum MessageReceiver {
message.sentTimestamp = envelope.timestamp
message.receivedTimestamp = UInt64(SnodeAPI.currentOffsetTimestampMs())
message.openGroupServerMessageId = openGroupMessageServerId.map { UInt64($0) }
message.attachDisappearingMessagesConfiguration(from: proto)
// Validate
var isValid: Bool = message.isValid