mirror of
https://github.com/bitwarden/server
synced 2025-12-17 16:53:23 +00:00
add logout notification
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user