Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: process conversation typing event - WPB-10178 #2194

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import Foundation

/// An event where a user is typing in a conversation.

public struct ConversationTypingEvent: Equatable, Codable {
public struct ConversationTypingEvent: Equatable, Codable, Sendable {

/// The id of the conversation.

Expand Down
36 changes: 30 additions & 6 deletions WireDomain/Project/WireDomain Project.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@
C97C01BB2CBE5E65000683C5 /* UserUpdateEventProcessorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C97C01BA2CBE5E65000683C5 /* UserUpdateEventProcessorTests.swift */; };
C97C01D72CC13E1A000683C5 /* UserLocalStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = C97C01D62CC13E1A000683C5 /* UserLocalStore.swift */; };
C9841A1F2CA309310062A834 /* MockFeatureConfigRepositoryProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9841A1E2CA309310062A834 /* MockFeatureConfigRepositoryProtocol.swift */; };
C98433D02CC26A1D009723D4 /* MLSProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = C98433CF2CC26A1D009723D4 /* MLSProvider.swift */; };
C98433E72CCA868F009723D4 /* MessageRepository.swift in Sources */ = {isa = PBXBuildFile; fileRef = C98433E62CCA868F009723D4 /* MessageRepository.swift */; };
C98433E92CCA86CA009723D4 /* MessageLocalStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = C98433E82CCA86CA009723D4 /* MessageLocalStore.swift */; };
C98433EF2CCB7EE6009723D4 /* MessageType.swift in Sources */ = {isa = PBXBuildFile; fileRef = C98433EE2CCB7EE6009723D4 /* MessageType.swift */; };
C98433F12CCBC251009723D4 /* MessageRepositoryTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C98433F02CCBC251009723D4 /* MessageRepositoryTests.swift */; };
C98433F52CCBC290009723D4 /* MessageLocalStoreTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C98433F42CCBC290009723D4 /* MessageLocalStoreTests.swift */; };
C98433D02CC26A1D009723D4 /* MLSProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = C98433CF2CC26A1D009723D4 /* MLSProvider.swift */; };
C99322D22C986E3A0065E10F /* TeamRepository.swift in Sources */ = {isa = PBXBuildFile; fileRef = C99322B22C986E3A0065E10F /* TeamRepository.swift */; };
C99322D32C986E3A0065E10F /* TeamRepositoryError.swift in Sources */ = {isa = PBXBuildFile; fileRef = C99322B32C986E3A0065E10F /* TeamRepositoryError.swift */; };
C99322D42C986E3A0065E10F /* SelfUserProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = C99322B52C986E3A0065E10F /* SelfUserProvider.swift */; };
Expand Down Expand Up @@ -85,6 +85,11 @@
C9C8FDD22C9DBE0E00702B91 /* UserClientAddEventProcessorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9C8FDC92C9DBE0E00702B91 /* UserClientAddEventProcessorTests.swift */; };
C9C8FDD32C9DBE0E00702B91 /* UserLegalHoldDisableEventProcessorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9C8FDCA2C9DBE0E00702B91 /* UserLegalHoldDisableEventProcessorTests.swift */; };
C9C8FDD42C9DBE0E00702B91 /* UserLegalholdRequestEventProcessorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9C8FDCB2C9DBE0E00702B91 /* UserLegalholdRequestEventProcessorTests.swift */; };
C9D574D92CEF7E1E00012A0E /* ConversationTypingEventProcessorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9D574D82CEF7E1E00012A0E /* ConversationTypingEventProcessorTests.swift */; };
C9D574DD2CF0854800012A0E /* ConversationTypingUsersTimeoutTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9D574DC2CF0854800012A0E /* ConversationTypingUsersTimeoutTests.swift */; };
C9D57F102CFE04D200012A0E /* ConversationTypingEventProcessor.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9D57F0D2CFE04D200012A0E /* ConversationTypingEventProcessor.swift */; };
C9D57F112CFE04D200012A0E /* ConversationTypingUsersInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9D57F0E2CFE04D200012A0E /* ConversationTypingUsersInfo.swift */; };
C9D57F122CFE04D200012A0E /* ConversationTypingUsersTimeout.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9D57F0F2CFE04D200012A0E /* ConversationTypingUsersTimeout.swift */; };
C9E0C9BB2C91B76F00CE6607 /* WireTestingPackage in Frameworks */ = {isa = PBXBuildFile; productRef = C9E0C9BA2C91B76F00CE6607 /* WireTestingPackage */; };
C9E8A3AE2C73878B0093DD5C /* ConnectionsRepositoryTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9E8A3AD2C73878B0093DD5C /* ConnectionsRepositoryTests.swift */; };
C9E8A3B72C749F2A0093DD5C /* ConversationLabelsRepositoryTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9E8A3B62C749F2A0093DD5C /* ConversationLabelsRepositoryTests.swift */; };
Expand Down Expand Up @@ -120,7 +125,6 @@
EEAD0A082C46776400CC8658 /* ConversationProtocolUpdateEventProcessor.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEAD0A072C46776400CC8658 /* ConversationProtocolUpdateEventProcessor.swift */; };
EEAD0A0A2C46776B00CC8658 /* ConversationReceiptModeUpdateEventProcessor.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEAD0A092C46776B00CC8658 /* ConversationReceiptModeUpdateEventProcessor.swift */; };
EEAD0A0C2C46777200CC8658 /* ConversationRenameEventProcessor.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEAD0A0B2C46777200CC8658 /* ConversationRenameEventProcessor.swift */; };
EEAD0A0E2C46777800CC8658 /* ConversationTypingEventProcessor.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEAD0A0D2C46777800CC8658 /* ConversationTypingEventProcessor.swift */; };
EEAD0A112C46A33E00CC8658 /* TeamMemberUpdateEventProcessor.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEAD0A102C46A33E00CC8658 /* TeamMemberUpdateEventProcessor.swift */; };
EEAD0A132C46A38200CC8658 /* TeamMemberLeaveEventProcessor.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEAD0A122C46A38200CC8658 /* TeamMemberLeaveEventProcessor.swift */; };
EEAD0A152C46A3AB00CC8658 /* TeamDeleteEventProcessor.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEAD0A142C46A3AB00CC8658 /* TeamDeleteEventProcessor.swift */; };
Expand Down Expand Up @@ -201,12 +205,12 @@
C97C01BA2CBE5E65000683C5 /* UserUpdateEventProcessorTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserUpdateEventProcessorTests.swift; sourceTree = "<group>"; };
C97C01D62CC13E1A000683C5 /* UserLocalStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserLocalStore.swift; sourceTree = "<group>"; };
C9841A1E2CA309310062A834 /* MockFeatureConfigRepositoryProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockFeatureConfigRepositoryProtocol.swift; sourceTree = "<group>"; };
C98433CF2CC26A1D009723D4 /* MLSProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MLSProvider.swift; sourceTree = "<group>"; };
C98433E62CCA868F009723D4 /* MessageRepository.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageRepository.swift; sourceTree = "<group>"; };
C98433E82CCA86CA009723D4 /* MessageLocalStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageLocalStore.swift; sourceTree = "<group>"; };
C98433EE2CCB7EE6009723D4 /* MessageType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageType.swift; sourceTree = "<group>"; };
C98433F02CCBC251009723D4 /* MessageRepositoryTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageRepositoryTests.swift; sourceTree = "<group>"; };
C98433F42CCBC290009723D4 /* MessageLocalStoreTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageLocalStoreTests.swift; sourceTree = "<group>"; };
C98433CF2CC26A1D009723D4 /* MLSProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MLSProvider.swift; sourceTree = "<group>"; };
C99322B22C986E3A0065E10F /* TeamRepository.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TeamRepository.swift; sourceTree = "<group>"; };
C99322B32C986E3A0065E10F /* TeamRepositoryError.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TeamRepositoryError.swift; sourceTree = "<group>"; };
C99322B52C986E3A0065E10F /* SelfUserProvider.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SelfUserProvider.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -236,6 +240,11 @@
C9C8FDC92C9DBE0E00702B91 /* UserClientAddEventProcessorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserClientAddEventProcessorTests.swift; sourceTree = "<group>"; };
C9C8FDCA2C9DBE0E00702B91 /* UserLegalHoldDisableEventProcessorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserLegalHoldDisableEventProcessorTests.swift; sourceTree = "<group>"; };
C9C8FDCB2C9DBE0E00702B91 /* UserLegalholdRequestEventProcessorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserLegalholdRequestEventProcessorTests.swift; sourceTree = "<group>"; };
C9D574D82CEF7E1E00012A0E /* ConversationTypingEventProcessorTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConversationTypingEventProcessorTests.swift; sourceTree = "<group>"; };
C9D574DC2CF0854800012A0E /* ConversationTypingUsersTimeoutTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConversationTypingUsersTimeoutTests.swift; sourceTree = "<group>"; };
C9D57F0D2CFE04D200012A0E /* ConversationTypingEventProcessor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConversationTypingEventProcessor.swift; sourceTree = "<group>"; };
C9D57F0E2CFE04D200012A0E /* ConversationTypingUsersInfo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConversationTypingUsersInfo.swift; sourceTree = "<group>"; };
C9D57F0F2CFE04D200012A0E /* ConversationTypingUsersTimeout.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConversationTypingUsersTimeout.swift; sourceTree = "<group>"; };
C9E8A3AD2C73878B0093DD5C /* ConnectionsRepositoryTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConnectionsRepositoryTests.swift; sourceTree = "<group>"; };
C9E8A3B62C749F2A0093DD5C /* ConversationLabelsRepositoryTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConversationLabelsRepositoryTests.swift; sourceTree = "<group>"; };
C9E8A3BF2C761EDD0093DD5C /* FeatureConfigRepositoryTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeatureConfigRepositoryTests.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -272,7 +281,6 @@
EEAD0A072C46776400CC8658 /* ConversationProtocolUpdateEventProcessor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConversationProtocolUpdateEventProcessor.swift; sourceTree = "<group>"; };
EEAD0A092C46776B00CC8658 /* ConversationReceiptModeUpdateEventProcessor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConversationReceiptModeUpdateEventProcessor.swift; sourceTree = "<group>"; };
EEAD0A0B2C46777200CC8658 /* ConversationRenameEventProcessor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConversationRenameEventProcessor.swift; sourceTree = "<group>"; };
EEAD0A0D2C46777800CC8658 /* ConversationTypingEventProcessor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConversationTypingEventProcessor.swift; sourceTree = "<group>"; };
EEAD0A102C46A33E00CC8658 /* TeamMemberUpdateEventProcessor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TeamMemberUpdateEventProcessor.swift; sourceTree = "<group>"; };
EEAD0A122C46A38200CC8658 /* TeamMemberLeaveEventProcessor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TeamMemberLeaveEventProcessor.swift; sourceTree = "<group>"; };
EEAD0A142C46A3AB00CC8658 /* TeamDeleteEventProcessor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TeamDeleteEventProcessor.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -482,6 +490,8 @@
C96B75252CDB7688003A85EB /* ConversationMemberUpdateEventProcessorTests.swift */,
C96B75262CDB7688003A85EB /* ConversationProtocolUpdateEventProcessorTests.swift */,
C96B75272CDB7688003A85EB /* ConversationReceiptModeUpdateEventProcessorTests.swift */,
C9D574D82CEF7E1E00012A0E /* ConversationTypingEventProcessorTests.swift */,
C9D574DC2CF0854800012A0E /* ConversationTypingUsersTimeoutTests.swift */,
);
path = ConversationEventProcessor;
sourceTree = "<group>";
Expand Down Expand Up @@ -693,6 +703,16 @@
path = "Event Processing";
sourceTree = "<group>";
};
C9D574DA2CF084F600012A0E /* ConversationTypingEventProcessor */ = {
isa = PBXGroup;
children = (
C9D57F0D2CFE04D200012A0E /* ConversationTypingEventProcessor.swift */,
C9D57F0E2CFE04D200012A0E /* ConversationTypingUsersInfo.swift */,
C9D57F0F2CFE04D200012A0E /* ConversationTypingUsersTimeout.swift */,
);
path = ConversationTypingEventProcessor;
sourceTree = "<group>";
};
C9EA76AD2C98548900A7D35C /* UseCases */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -760,7 +780,7 @@
EEAD0A072C46776400CC8658 /* ConversationProtocolUpdateEventProcessor.swift */,
EEAD0A092C46776B00CC8658 /* ConversationReceiptModeUpdateEventProcessor.swift */,
EEAD0A0B2C46777200CC8658 /* ConversationRenameEventProcessor.swift */,
EEAD0A0D2C46777800CC8658 /* ConversationTypingEventProcessor.swift */,
C9D574DA2CF084F600012A0E /* ConversationTypingEventProcessor */,
);
path = ConversationEventProcessor;
sourceTree = "<group>";
Expand Down Expand Up @@ -1037,6 +1057,9 @@
C91F111D2C9C4B2B00BA5BE2 /* ConnectionsLocalStore.swift in Sources */,
EEAD0A022C46774F00CC8658 /* ConversationMLSMessageAddEventProcessor.swift in Sources */,
EE368CCE2C2DAA87009DBAB0 /* ConversationEventProcessor.swift in Sources */,
C9D57F102CFE04D200012A0E /* ConversationTypingEventProcessor.swift in Sources */,
C9D57F112CFE04D200012A0E /* ConversationTypingUsersInfo.swift in Sources */,
C9D57F122CFE04D200012A0E /* ConversationTypingUsersTimeout.swift in Sources */,
EEAD0A2C2C46AF9200CC8658 /* UserPushRemoveEventProcessor.swift in Sources */,
0163EE812C20D71C00B37260 /* WireDomain.docc in Sources */,
EEAD0A2E2C46B01900CC8658 /* UserUpdateEventProcessor.swift in Sources */,
Expand All @@ -1063,7 +1086,6 @@
EEAD0A182C46A88D00CC8658 /* UserClientAddEventProcessor.swift in Sources */,
C99322DC2C986E3A0065E10F /* FeatureConfigRepository.swift in Sources */,
C99322E22C986E3A0065E10F /* ConversationLocalStore+Status.swift in Sources */,
EEAD0A0E2C46777800CC8658 /* ConversationTypingEventProcessor.swift in Sources */,
C99322D92C986E3A0065E10F /* UpdateEventsRepositoryError.swift in Sources */,
EEAD0A202C46AB8700CC8658 /* UserDeleteEventProcessor.swift in Sources */,
EEAD0A152C46A3AB00CC8658 /* TeamDeleteEventProcessor.swift in Sources */,
Expand Down Expand Up @@ -1117,9 +1139,11 @@
C96B752D2CDB7688003A85EB /* ConversationCreateEventProcessorTests.swift in Sources */,
C96B752E2CDB7688003A85EB /* ConversationReceiptModeUpdateEventProcessorTests.swift in Sources */,
C96B752F2CDB7688003A85EB /* ConversationMemberLeaveEventTests.swift in Sources */,
C9D574DD2CF0854800012A0E /* ConversationTypingUsersTimeoutTests.swift in Sources */,
C93961922C91B12800EA971A /* TestError.swift in Sources */,
EEC410262C60D48900E89394 /* SyncManagerTests.swift in Sources */,
C9C8FDD32C9DBE0E00702B91 /* UserLegalHoldDisableEventProcessorTests.swift in Sources */,
C9D574D92CEF7E1E00012A0E /* ConversationTypingEventProcessorTests.swift in Sources */,
EE57A7032C2994420096F242 /* UpdateEventsRepositoryTests.swift in Sources */,
C97C01522CB01BEF000683C5 /* UserConnectionEventProcessorTests.swift in Sources */,
C98433F52CCBC290009723D4 /* MessageLocalStoreTests.swift in Sources */,
Expand Down
Loading