mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 21:33:27 +00:00
Add NotificationType.SyncOrganizations (#7924)
This commit is contained in:
@@ -20,4 +20,6 @@ export enum NotificationType {
|
|||||||
|
|
||||||
AuthRequest = 15,
|
AuthRequest = 15,
|
||||||
AuthRequestResponse = 16,
|
AuthRequestResponse = 16,
|
||||||
|
|
||||||
|
SyncOrganizations = 17,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ export class NotificationResponse extends BaseResponse {
|
|||||||
break;
|
break;
|
||||||
case NotificationType.SyncVault:
|
case NotificationType.SyncVault:
|
||||||
case NotificationType.SyncCiphers:
|
case NotificationType.SyncCiphers:
|
||||||
|
case NotificationType.SyncOrganizations:
|
||||||
case NotificationType.SyncOrgKeys:
|
case NotificationType.SyncOrgKeys:
|
||||||
case NotificationType.SyncSettings:
|
case NotificationType.SyncSettings:
|
||||||
case NotificationType.LogOut:
|
case NotificationType.LogOut:
|
||||||
|
|||||||
@@ -167,6 +167,12 @@ export class NotificationsService implements NotificationsServiceAbstraction {
|
|||||||
await this.syncService.fullSync(false);
|
await this.syncService.fullSync(false);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case NotificationType.SyncOrganizations:
|
||||||
|
if (isAuthenticated) {
|
||||||
|
// An organization update may not have bumped the user's account revision date, so force a sync
|
||||||
|
await this.syncService.fullSync(true);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case NotificationType.SyncOrgKeys:
|
case NotificationType.SyncOrgKeys:
|
||||||
if (isAuthenticated) {
|
if (isAuthenticated) {
|
||||||
await this.syncService.fullSync(true);
|
await this.syncService.fullSync(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user