1
0
mirror of https://github.com/bitwarden/server synced 2025-12-17 16:53:23 +00:00

add logout notification

This commit is contained in:
Kyle Spearrin
2018-08-28 08:22:49 -04:00
parent 3e2b220074
commit 18713054f6
10 changed files with 62 additions and 27 deletions

View File

@@ -47,8 +47,9 @@ namespace Bit.Notifications
case PushType.SyncVault:
case PushType.SyncOrgKeys:
case PushType.SyncSettings:
case PushType.LogOut:
var userNotification =
JsonConvert.DeserializeObject<PushNotificationData<SyncUserPushNotification>>(
JsonConvert.DeserializeObject<PushNotificationData<UserPushNotification>>(
notificationJson);
await hubContext.Clients.User(userNotification.Payload.UserId.ToString())
.SendAsync("ReceiveMessage", userNotification, cancellationToken);