Skip to content

Commit 5aac718

Browse files
committed
refactor: rename ConversationEventProcessorProtocol to LegacyConversationEventProcessorProtocol
1 parent 8736470 commit 5aac718

File tree

11 files changed

+59
-60
lines changed

11 files changed

+59
-60
lines changed

wire-ios-data-model/Source/MLS/MLSService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2354,7 +2354,7 @@ private extension TimeInterval {
23542354
}
23552355

23562356
// sourcery: AutoMockable
2357-
public protocol ConversationEventProcessorProtocol {
2357+
public protocol LegacyConversationEventProcessorProtocol {
23582358

23592359
/// Decodes event's payload and transform it to local model
23602360
func processConversationEvents(_ events: [ZMUpdateEvent]) async

wire-ios-data-model/Support/Sourcery/generated/AutoMockable.generated.swift

Lines changed: 45 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wire-ios-data-model/Tests/MLS/MLSServiceTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,7 @@ final class MLSServiceTests: ZMConversationTestsBase, MLSServiceDelegate {
16321632
let groupID = MLSGroupID.random()
16331633

16341634
var count = 0
1635-
mockCoreCryptoContext.wipeConversationConversationId_MockMethod = { (id: ConversationId) in
1635+
mockCoreCryptoContext.wipeConversationConversationId_MockMethod = { (id: Data) in
16361636
count += 1
16371637
XCTAssertEqual(id, groupID.data)
16381638
}

wire-ios-request-strategy/Sources/Request Strategies/Conversation/Actions/AddParticipantActionHandler.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class AddParticipantActionHandler: ActionHandler<AddParticipantAction> {
3939

4040
let decoder: JSONDecoder = .defaultDecoder
4141

42-
private let eventProcessor: ConversationEventProcessorProtocol
42+
private let eventProcessor: LegacyConversationEventProcessorProtocol
4343

4444
override convenience init(context: NSManagedObjectContext) {
4545
self.init(
@@ -50,7 +50,7 @@ class AddParticipantActionHandler: ActionHandler<AddParticipantAction> {
5050

5151
init(
5252
context: NSManagedObjectContext,
53-
eventProcessor: ConversationEventProcessorProtocol
53+
eventProcessor: LegacyConversationEventProcessorProtocol
5454
) {
5555
self.eventProcessor = eventProcessor
5656
super.init(context: context)

wire-ios-request-strategy/Sources/Request Strategies/Conversation/ConversationEventProcessor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import Foundation
2020
import WireDataModel
2121
import WireLogging
2222

23-
public class ConversationEventProcessor: NSObject, ConversationEventProcessorProtocol, ZMEventAsyncConsumer {
23+
public class ConversationEventProcessor: NSObject, LegacyConversationEventProcessorProtocol, ZMEventAsyncConsumer {
2424

2525
// MARK: - Properties
2626

wire-ios-sync-engine/Source/Data Model/Conversation+Join.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ extension ZMConversation {
7474
code: String,
7575
password: String?,
7676
transportSession: TransportSessionType,
77-
eventProcessor: ConversationEventProcessorProtocol,
77+
eventProcessor: LegacyConversationEventProcessorProtocol,
7878
contextProvider: ContextProvider,
7979
completion: @escaping (Result<ZMConversation, Error>) -> Void
8080
) {

wire-ios-sync-engine/Source/Data Model/ServiceUser.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public extension ServiceUser {
213213

214214
internal func createConversation(
215215
transportSession: TransportSessionType,
216-
eventProcessor: ConversationEventProcessorProtocol,
216+
eventProcessor: LegacyConversationEventProcessorProtocol,
217217
contextProvider: ContextProvider,
218218
completionHandler: @escaping (Result<ZMConversation, Error>) -> Void
219219
) {
@@ -325,7 +325,7 @@ public extension ZMConversation {
325325
internal func add(
326326
serviceUser serviceUserData: ServiceUserData,
327327
transportSession: TransportSessionType,
328-
eventProcessor: ConversationEventProcessorProtocol,
328+
eventProcessor: LegacyConversationEventProcessorProtocol,
329329
contextProvider: ContextProvider,
330330
completionHandler: @escaping (Result<Void, Error>) -> Void
331331
) {

wire-ios-sync-engine/Source/UserSession/URLActionProcessors/ConnectToBotURLActionProcessor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ import Foundation
2121
final class ConnectToBotURLActionProcessor: NSObject, URLActionProcessor {
2222

2323
var transportSession: TransportSessionType
24-
var eventProcessor: ConversationEventProcessorProtocol
24+
var eventProcessor: LegacyConversationEventProcessorProtocol
2525
var contextProvider: ContextProvider
2626
var searchUsersCache: SearchUsersCache?
2727

2828
init(
2929
contextprovider: ContextProvider,
3030
transportSession: TransportSessionType,
31-
eventProcessor: ConversationEventProcessorProtocol,
31+
eventProcessor: LegacyConversationEventProcessorProtocol,
3232
searchUsersCache: SearchUsersCache?
3333
) {
3434
self.contextProvider = contextprovider

wire-ios-sync-engine/Source/UserSession/URLActionProcessors/DeepLinkURLActionProcessor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ class DeepLinkURLActionProcessor: URLActionProcessor {
2424

2525
var contextProvider: ContextProvider
2626
var transportSession: TransportSessionType
27-
var eventProcessor: ConversationEventProcessorProtocol
27+
var eventProcessor: LegacyConversationEventProcessorProtocol
2828

2929
init(
3030
contextProvider: ContextProvider,
3131
transportSession: TransportSessionType,
32-
eventProcessor: ConversationEventProcessorProtocol
32+
eventProcessor: LegacyConversationEventProcessorProtocol
3333
) {
3434
self.contextProvider = contextProvider
3535
self.transportSession = transportSession

wire-ios-sync-engine/Source/UserSession/ZMUserSession/ZMUserSession.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ public final class ZMUserSession: NSObject {
286286

287287
let keyRotator = E2EIKeyPackageRotator(
288288
coreCryptoProvider: coreCryptoProvider,
289-
conversationEventProcessor: conversationEventProcessor,
290289
context: syncContext,
291290
onNewCRLsDistributionPointsSubject: onNewCRLsDistributionPointsSubject,
292291
featureRepository: featureRepository

wire-ios-sync-engine/Tests/Source/UserSession/DeepLinkURLActionProcessorTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ final class DeepLinkURLActionProcessorTests: DatabaseTest {
2626
var presentationDelegate: MockPresentationDelegate!
2727
var sut: WireSyncEngine.DeepLinkURLActionProcessor!
2828
var mockTransportSession: MockTransportSession!
29-
var mockEventProcessor: MockConversationEventProcessorProtocol!
29+
var mockEventProcessor: MockLegacyConversationEventProcessorProtocol!
3030

3131
override func setUp() {
3232
super.setUp()
3333

3434
mockTransportSession = MockTransportSession(dispatchGroup: dispatchGroup)
35-
mockEventProcessor = MockConversationEventProcessorProtocol()
35+
mockEventProcessor = MockLegacyConversationEventProcessorProtocol()
3636
mockEventProcessor.processConversationEvents_MockMethod = { _ in }
3737
presentationDelegate = MockPresentationDelegate()
3838

0 commit comments

Comments
 (0)