diff --git a/src/Core/Services/Implementations/AzureQueuePushNotificationService.cs b/src/Core/Services/Implementations/AzureQueuePushNotificationService.cs index a942109176..84bef2c01b 100644 --- a/src/Core/Services/Implementations/AzureQueuePushNotificationService.cs +++ b/src/Core/Services/Implementations/AzureQueuePushNotificationService.cs @@ -154,12 +154,14 @@ namespace Bit.Core.Services public Task SendPayloadToUserAsync(string userId, PushType type, object payload, string identifier) { - throw new NotImplementedException(); + // Noop + return Task.FromResult(0); } public Task SendPayloadToOrganizationAsync(string orgId, PushType type, object payload, string identifier) { - throw new NotImplementedException(); + // Noop + return Task.FromResult(0); } } } diff --git a/src/Core/Services/Implementations/MultiServicePushNotificationService.cs b/src/Core/Services/Implementations/MultiServicePushNotificationService.cs index d25dd3d948..ececb16581 100644 --- a/src/Core/Services/Implementations/MultiServicePushNotificationService.cs +++ b/src/Core/Services/Implementations/MultiServicePushNotificationService.cs @@ -33,7 +33,7 @@ namespace Bit.Core.Services #if NET471 _services.Add(new NotificationHubPushNotificationService(globalSettings, httpContextAccessor)); #endif - _services.Add(new AzureQueuePushNotificationService(globalSettings, httpContextAccessor)); + // _services.Add(new AzureQueuePushNotificationService(globalSettings, httpContextAccessor)); } } @@ -99,12 +99,14 @@ namespace Bit.Core.Services public Task SendPayloadToUserAsync(string userId, PushType type, object payload, string identifier) { - throw new NotImplementedException(); + PushToServices((s) => s.SendPayloadToUserAsync(userId, type, payload, identifier)); + return Task.FromResult(0); } public Task SendPayloadToOrganizationAsync(string orgId, PushType type, object payload, string identifier) { - throw new NotImplementedException(); + PushToServices((s) => s.SendPayloadToOrganizationAsync(orgId, type, payload, identifier)); + return Task.FromResult(0); } private void PushToServices(Func pushFunc)