chore: only download inbound invites when signed in

This commit is contained in:
Aman Harwara
2023-09-04 13:31:32 +05:30
parent e7ecabc972
commit 35d4e7ff2d

View File

@@ -119,6 +119,9 @@ export class VaultInviteService
await this.processInboundInvites(event.payload as SyncEventReceivedSharedVaultInvitesData)
break
case ApplicationEvent.Launched:
if (!this.session.isSignedIn()) {
return
}
void this.downloadInboundInvites()
break
case WebSocketsServiceEvent.UserInvitedToSharedVault: