From dc6a0bbd33342832a41b88dd7e1c8cb7808dc94a Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Sun, 9 Jul 2023 07:49:55 +0200 Subject: [PATCH] Add sync on send create/update/delete notification --- src/App/Services/PushNotificationListenerService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/App/Services/PushNotificationListenerService.cs b/src/App/Services/PushNotificationListenerService.cs index b08a43f1c..08bcb5ac5 100644 --- a/src/App/Services/PushNotificationListenerService.cs +++ b/src/App/Services/PushNotificationListenerService.cs @@ -131,6 +131,14 @@ namespace Bit.App.Services _messagingService.Value.Send("logout"); } break; + case NotificationType.SyncSendCreate: + case NotificationType.SyncSendUpdate: + case NotificationType.SyncSendDelete: + if (isAuthenticated) + { + await _syncService.Value.FullSyncAsync(false); + } + break; case NotificationType.AuthRequest: var passwordlessLoginMessage = JsonConvert.DeserializeObject(notification.Payload);