mirror of
https://github.com/bitwarden/server.git
synced 2025-07-15 22:57:44 -05:00
enabled send and added send sync notifications (#1106)
This commit is contained in:
@ -54,6 +54,15 @@ namespace Bit.Notifications
|
||||
await hubContext.Clients.User(userNotification.Payload.UserId.ToString())
|
||||
.SendAsync("ReceiveMessage", userNotification, cancellationToken);
|
||||
break;
|
||||
case PushType.SyncSendCreate:
|
||||
case PushType.SyncSendUpdate:
|
||||
case PushType.SyncSendDelete:
|
||||
var sendNotification =
|
||||
JsonConvert.DeserializeObject<PushNotificationData<SyncSendPushNotification>>(
|
||||
notificationJson);
|
||||
await hubContext.Clients.User(sendNotification.Payload.UserId.ToString())
|
||||
.SendAsync("ReceiveMessage", sendNotification, cancellationToken);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user