diff --git a/libs/common/src/enums/notification-type.enum.ts b/libs/common/src/enums/notification-type.enum.ts index 457ad174ca..c5853cbe2c 100644 --- a/libs/common/src/enums/notification-type.enum.ts +++ b/libs/common/src/enums/notification-type.enum.ts @@ -20,4 +20,6 @@ export enum NotificationType { AuthRequest = 15, AuthRequestResponse = 16, + + SyncOrganizations = 17, } diff --git a/libs/common/src/models/response/notification.response.ts b/libs/common/src/models/response/notification.response.ts index 9186fd24a3..af79b883f0 100644 --- a/libs/common/src/models/response/notification.response.ts +++ b/libs/common/src/models/response/notification.response.ts @@ -27,6 +27,7 @@ export class NotificationResponse extends BaseResponse { break; case NotificationType.SyncVault: case NotificationType.SyncCiphers: + case NotificationType.SyncOrganizations: case NotificationType.SyncOrgKeys: case NotificationType.SyncSettings: case NotificationType.LogOut: diff --git a/libs/common/src/services/notifications.service.ts b/libs/common/src/services/notifications.service.ts index 31f8cde5b0..d15e8891b2 100644 --- a/libs/common/src/services/notifications.service.ts +++ b/libs/common/src/services/notifications.service.ts @@ -167,6 +167,12 @@ export class NotificationsService implements NotificationsServiceAbstraction { await this.syncService.fullSync(false); } 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: if (isAuthenticated) { await this.syncService.fullSync(true);