Skip to content

Commit

Permalink
chore: remove MessageDeliveredDomainEvent from even more places
Browse files Browse the repository at this point in the history
  • Loading branch information
tnotheis committed Sep 16, 2024
1 parent 9913e7b commit c0200be
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ private static void SubscribeToMessagesEvents(IEventBus eventBus)
eventBus.Subscribe<MessageCreatedDomainEvent, MessageCreatedDomainEventHandler>();
eventBus.Subscribe<IdentityDeletionProcessStartedDomainEvent, IdentityDeletionProcessStartedDomainEventHandler>();
eventBus.Subscribe<IdentityDeletionProcessStatusChangedDomainEvent, IdentityDeletionProcessStatusChangedDomainEventHandler>();
// eventBus.Subscribe<MessageDeliveredDomainEvent, MessageDeliveredDomainEventHandler>(); // this is temporarily disabled to avoid an external event flood when the same message is sent to many recipients
}

private static void SubscribeToRelationshipsEvents(IEventBus eventBus)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ private static string MapExternalEventType(ExternalEventType externalEventType)
return externalEventType switch
{
ExternalEventType.MessageReceived => "MessageReceived",
ExternalEventType.MessageDelivered => "MessageDelivered",

ExternalEventType.RelationshipStatusChanged => "RelationshipStatusChanged",
ExternalEventType.RelationshipReactivationRequested => "RelationshipReactivationRequested",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class ExternalEventBuilder

private ExternalEventBuilder()
{
_type = ExternalEventType.MessageDelivered;
_type = ExternalEventType.MessageReceived;
_owner = TestDataGenerator.CreateRandomIdentityAddress();
_payload = new { SomeArbitraryProperty = "SomeArbitraryValue" };
}
Expand Down

0 comments on commit c0200be

Please sign in to comment.