|
|
@ -174,6 +174,8 @@ public enum MessageReceiver {
|
|
|
|
// • This method was invoked and the received message timestamps table was updated
|
|
|
|
// • This method was invoked and the received message timestamps table was updated
|
|
|
|
// • Processing wasn't finished
|
|
|
|
// • Processing wasn't finished
|
|
|
|
// • The user doesn't see the new closed group
|
|
|
|
// • The user doesn't see the new closed group
|
|
|
|
|
|
|
|
} else if let message = message as? CallMessage, case .offer = message.kind{
|
|
|
|
|
|
|
|
// Allow duplicates for all call offer messages
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
guard !Set(storage.getReceivedMessageTimestamps(using: transaction)).contains(envelope.timestamp) || isRetry else { throw Error.duplicateMessage }
|
|
|
|
guard !Set(storage.getReceivedMessageTimestamps(using: transaction)).contains(envelope.timestamp) || isRetry else { throw Error.duplicateMessage }
|
|
|
|
storage.addReceivedMessageTimestamp(envelope.timestamp, using: transaction)
|
|
|
|
storage.addReceivedMessageTimestamp(envelope.timestamp, using: transaction)
|
|
|
|