update unit test

pull/941/head
Ryan Zhao 2 years ago
parent cc9504bf40
commit a7a19abccf

@ -139,7 +139,7 @@ extension MessageReceiver {
).inserted(db) ).inserted(db)
} }
internal static func updateDisappearingMessagesConfigurationIfNeeded( public static func updateDisappearingMessagesConfigurationIfNeeded(
_ db: Database, _ db: Database,
threadId: String, threadId: String,
threadVariant: SessionThread.Variant, threadVariant: SessionThread.Variant,

@ -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
) )
} }

Loading…
Cancel
Save