diff --git a/Modules/Messages/src/Messages.Application/DomainEvents/Incoming/RelationshipStatusChanged/RelationshipStatusChangedDomainEventHandler.cs b/Modules/Messages/src/Messages.Application/DomainEvents/Incoming/RelationshipStatusChanged/RelationshipStatusChangedDomainEventHandler.cs index 7ad162873e..cba6ab5ba8 100644 --- a/Modules/Messages/src/Messages.Application/DomainEvents/Incoming/RelationshipStatusChanged/RelationshipStatusChangedDomainEventHandler.cs +++ b/Modules/Messages/src/Messages.Application/DomainEvents/Incoming/RelationshipStatusChanged/RelationshipStatusChangedDomainEventHandler.cs @@ -22,7 +22,7 @@ public RelationshipStatusChangedDomainEventHandler(IMessagesRepository messagesR public async Task Handle(RelationshipStatusChangedDomainEvent @event) { - if (@event.Status != RelationshipStatus.ReadyForDeletion.ToString()) + if (@event.NewStatus != RelationshipStatus.ReadyForDeletion.ToString()) return; var anonymizedIdentityAddress = IdentityAddress.Create(Encoding.Unicode.GetBytes(DELETED_IDENTITY_STRING), _applicationOptions.DidDomainName); diff --git a/Modules/Messages/src/Messages.Domain/DomainEvents/Incoming/RelationshipStatusChangedDomainEvent.cs b/Modules/Messages/src/Messages.Domain/DomainEvents/Incoming/RelationshipStatusChangedDomainEvent.cs index fc4d7cd342..066e36dfe9 100644 --- a/Modules/Messages/src/Messages.Domain/DomainEvents/Incoming/RelationshipStatusChangedDomainEvent.cs +++ b/Modules/Messages/src/Messages.Domain/DomainEvents/Incoming/RelationshipStatusChangedDomainEvent.cs @@ -5,7 +5,7 @@ namespace Backbone.Modules.Messages.Domain.DomainEvents.Incoming; public class RelationshipStatusChangedDomainEvent : DomainEvent { public required string RelationshipId { get; set; } - public required string Status { get; set; } + public required string NewStatus { get; set; } public required string Initiator { get; set; } public required string Peer { get; set; } }