mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 02:33:46 +00:00
added Send sync notification support (#250)
This commit is contained in:
@@ -16,6 +16,7 @@ import {
|
||||
NotificationResponse,
|
||||
SyncCipherNotification,
|
||||
SyncFolderNotification,
|
||||
SyncSendNotification,
|
||||
} from '../models/response/notificationResponse';
|
||||
|
||||
export class NotificationsService implements NotificationsServiceAbstraction {
|
||||
@@ -159,6 +160,13 @@ export class NotificationsService implements NotificationsServiceAbstraction {
|
||||
this.logoutCallback();
|
||||
}
|
||||
break;
|
||||
case NotificationType.SyncSendCreate:
|
||||
case NotificationType.SyncSendUpdate:
|
||||
await this.syncService.syncUpsertSend(notification.payload as SyncSendNotification,
|
||||
notification.type === NotificationType.SyncSendUpdate);
|
||||
break;
|
||||
case NotificationType.SyncSendDelete:
|
||||
await this.syncService.syncDeleteSend(notification.payload as SyncSendNotification);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user