diff --git a/Session/Utilities/BackgroundPoller.swift b/Session/Utilities/BackgroundPoller.swift index 3a79a7450..0d67c90fe 100644 --- a/Session/Utilities/BackgroundPoller.swift +++ b/Session/Utilities/BackgroundPoller.swift @@ -48,7 +48,7 @@ public final class BackgroundPoller : NSObject { // messages failed to parse. guard let envelope = SNProtoEnvelope.from(json), let data = try? envelope.serializedData() else { return nil } - let job = MessageReceiveJob(data: data, isBackgroundPoll: true) + let job = MessageReceiveJob(data: data, serverHash: json["hash"] as? String, isBackgroundPoll: true) return job.execute() } return when(fulfilled: promises) // The promise returned by MessageReceiveJob never rejects diff --git a/SessionMessagingKit/Sending & Receiving/Pollers/ClosedGroupPoller.swift b/SessionMessagingKit/Sending & Receiving/Pollers/ClosedGroupPoller.swift index 025af2aba..6a4fb2c92 100644 --- a/SessionMessagingKit/Sending & Receiving/Pollers/ClosedGroupPoller.swift +++ b/SessionMessagingKit/Sending & Receiving/Pollers/ClosedGroupPoller.swift @@ -117,7 +117,7 @@ public final class ClosedGroupPoller : NSObject { guard let envelope = SNProtoEnvelope.from(json) else { return } do { let data = try envelope.serializedData() - let job = MessageReceiveJob(data: data, isBackgroundPoll: false) + let job = MessageReceiveJob(data: data, serverHash: json["hash"] as? String, isBackgroundPoll: false) SNMessagingKitConfiguration.shared.storage.write { transaction in SessionMessagingKit.JobQueue.shared.add(job, using: transaction) } diff --git a/SessionMessagingKit/Sending & Receiving/Pollers/Poller.swift b/SessionMessagingKit/Sending & Receiving/Pollers/Poller.swift index 85da45a78..cfb3463ea 100644 --- a/SessionMessagingKit/Sending & Receiving/Pollers/Poller.swift +++ b/SessionMessagingKit/Sending & Receiving/Pollers/Poller.swift @@ -97,7 +97,7 @@ public final class Poller : NSObject { guard let envelope = SNProtoEnvelope.from(json) else { return } do { let data = try envelope.serializedData() - let job = MessageReceiveJob(data: data, isBackgroundPoll: false) + let job = MessageReceiveJob(data: data, serverHash: json["hash"] as? String, isBackgroundPoll: false) SNMessagingKitConfiguration.shared.storage.write { transaction in SessionMessagingKit.JobQueue.shared.add(job, using: transaction) }