mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix timestamp issue
This commit is contained in:
parent
cfb1d78d35
commit
5021357661
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ public final class OpenGroupPollerV2 : NSObject {
|
||||||
let envelope = SNProtoEnvelope.builder(type: .sessionMessage, timestamp: message.sentTimestamp)
|
let envelope = SNProtoEnvelope.builder(type: .sessionMessage, timestamp: message.sentTimestamp)
|
||||||
envelope.setContent(data)
|
envelope.setContent(data)
|
||||||
envelope.setSource(message.sender!) // Safe because messages with a nil sender are filtered out
|
envelope.setSource(message.sender!) // Safe because messages with a nil sender are filtered out
|
||||||
|
envelope.setServerTimestamp(message.sentTimestamp)
|
||||||
let job = MessageReceiveJob(data: try! envelope.buildSerializedData(), openGroupMessageServerID: UInt64(message.serverID!), openGroupID: openGroupID, isBackgroundPoll: isBackgroundPoll)
|
let job = MessageReceiveJob(data: try! envelope.buildSerializedData(), openGroupMessageServerID: UInt64(message.serverID!), openGroupID: openGroupID, isBackgroundPoll: isBackgroundPoll)
|
||||||
SNMessagingKitConfiguration.shared.storage.write { transaction in
|
SNMessagingKitConfiguration.shared.storage.write { transaction in
|
||||||
SessionMessagingKit.JobQueue.shared.add(job, using: transaction)
|
SessionMessagingKit.JobQueue.shared.add(job, using: transaction)
|
||||||
|
|
Loading…
Reference in a new issue