diff --git a/common.props b/common.props index b3c4ddb..924ea7a 100644 --- a/common.props +++ b/common.props @@ -1,7 +1,7 @@ latest - 0.1.0 + 0.1.1 $(NoWarn);CS1591 true EasyAbp Team diff --git a/src/EasyAbp.PrivateMessaging.Application/PrivateMessages/PrivateMessageAppService.cs b/src/EasyAbp.PrivateMessaging.Application/PrivateMessages/PrivateMessageAppService.cs index 36f0ae2..d16240d 100644 --- a/src/EasyAbp.PrivateMessaging.Application/PrivateMessages/PrivateMessageAppService.cs +++ b/src/EasyAbp.PrivateMessaging.Application/PrivateMessages/PrivateMessageAppService.cs @@ -124,7 +124,7 @@ public virtual async Task CreateAsync(CreateUpdatePrivateMess CurrentTenant.Id, toUser.Id, input.Title, input.Content)); await _notificationManager.CreateAsync(new PrivateMessageNotification(GuidGenerator.Create(), - toUser.Id, message.Id, message.GetTitlePreview())); + CurrentTenant.Id, toUser.Id, message.Id, message.GetTitlePreview())); return await MapToDtoAndLoadMoreInfosAsync(message); } diff --git a/src/EasyAbp.PrivateMessaging.Domain/PrivateMessageNotifications/PrivateMessageNotification.cs b/src/EasyAbp.PrivateMessaging.Domain/PrivateMessageNotifications/PrivateMessageNotification.cs index 2172ce8..9867d43 100644 --- a/src/EasyAbp.PrivateMessaging.Domain/PrivateMessageNotifications/PrivateMessageNotification.cs +++ b/src/EasyAbp.PrivateMessaging.Domain/PrivateMessageNotifications/PrivateMessageNotification.cs @@ -23,10 +23,12 @@ protected PrivateMessageNotification() public PrivateMessageNotification( Guid id, + Guid? tenantId, Guid userId, Guid privateMessageId, [NotNull] string titlePreview) : base(id) { + TenantId = tenantId; UserId = userId; PrivateMessageId = privateMessageId; TitlePreview = titlePreview;