1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-16 23:27:30 -05:00

Added push notification for when Collection management settings have been changed. (#5230)

This commit is contained in:
Jared McCannon
2025-01-09 10:32:33 -06:00
committed by GitHub
parent e754ae4729
commit ced4870309
11 changed files with 72 additions and 0 deletions

View File

@ -92,6 +92,13 @@ public static class HubHelpers
await hubContext.Clients.Group($"Organization_{orgStatusNotification.Payload.OrganizationId}")
.SendAsync("ReceiveMessage", orgStatusNotification, cancellationToken);
break;
case PushType.SyncOrganizationCollectionSettingChanged:
var organizationCollectionSettingsChangedNotification =
JsonSerializer.Deserialize<PushNotificationData<OrganizationStatusPushNotification>>(
notificationJson, _deserializerOptions);
await hubContext.Clients.Group($"Organization_{organizationCollectionSettingsChangedNotification.Payload.OrganizationId}")
.SendAsync("ReceiveMessage", organizationCollectionSettingsChangedNotification, cancellationToken);
break;
default:
break;
}