|
|
@ -107,13 +107,12 @@ class MessageReceiverDisappearingMessagesSpec: QuickSpec {
|
|
|
|
// MARK: -- updates the local config properly
|
|
|
|
// MARK: -- updates the local config properly
|
|
|
|
it("updates the local config properly") {
|
|
|
|
it("updates the local config properly") {
|
|
|
|
mockStorage.write { db in
|
|
|
|
mockStorage.write { db in
|
|
|
|
try MessageReceiver.handle(
|
|
|
|
try MessageReceiver.updateDisappearingMessagesConfigurationIfNeeded(
|
|
|
|
db,
|
|
|
|
db,
|
|
|
|
threadId: "TestId",
|
|
|
|
threadId: "TestId",
|
|
|
|
threadVariant: .contact,
|
|
|
|
threadVariant: .contact,
|
|
|
|
message: mockMessage,
|
|
|
|
message: mockMessage,
|
|
|
|
serverExpirationTimestamp: nil,
|
|
|
|
proto: mockProto
|
|
|
|
associatedWithProto: mockProto
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|