25 lines
474 B
Swift
25 lines
474 B
Swift
//
|
|
// Copyright 2023 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
//
|
|
|
|
import Foundation
|
|
|
|
#if TESTABLE_BUILD
|
|
|
|
open class SentMessageTranscriptReceiverMock: SentMessageTranscriptReceiver {
|
|
|
|
public init() {}
|
|
|
|
public func process(
|
|
_: SentMessageTranscript,
|
|
registeredState: RegisteredState,
|
|
tx: DBWriteTransaction,
|
|
) -> Result<TSOutgoingMessage?, Error> {
|
|
// Do nothing
|
|
return .success(nil)
|
|
}
|
|
}
|
|
|
|
#endif
|