chore: ui for designating survivor for shared vault & warning when no survivor (#2544)

This commit is contained in:
Aman Harwara
2023-09-29 16:38:38 +05:30
committed by GitHub
parent 7c8816e229
commit 79c5da6c5b
8 changed files with 162 additions and 15 deletions

View File

@@ -921,6 +921,7 @@ export class Dependencies {
this.factory.set(TYPES.SharedVaultService, () => {
return new SharedVaultService(
this.get<SyncService>(TYPES.SyncService),
this.get<ItemManager>(TYPES.ItemManager),
this.get<SessionManager>(TYPES.SessionManager),
this.get<VaultUserService>(TYPES.VaultUserService),

View File

@@ -44,9 +44,11 @@ export class VaultsContext extends AppContext {
await this.awaitPromiseOrDoNothing(
promise,
1,
'Waiting for notifications timed out. Notifications might have been processed in previous sync.'
'Waiting for notifications timed out. Notifications might have been processed in previous sync.',
)
await this.sync()
if (this.notifications['handleReceivedNotifications'].restore) {
this.notifications['handleReceivedNotifications'].restore()
}