1
0
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:
Addison Beck
2021-01-22 16:16:40 -05:00
committed by GitHub
parent 3555b15b91
commit b8a2158626
12 changed files with 182 additions and 2 deletions

View File

@ -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;
}