chore: fix vault invite sender contact

This commit is contained in:
Aman Harwara
2023-08-31 21:10:34 +05:30
parent 6cd98e7a40
commit de165c7456
3 changed files with 13 additions and 7 deletions

View File

@@ -202,6 +202,10 @@ export class ContactService extends AbstractService<ContactServiceEvent> impleme
return this.findContact(invite.user_uuid)
}
findSenderContactForInvite(invite: SharedVaultInviteServerHash): TrustedContactInterface | undefined {
return this.findContact(invite.sender_uuid)
}
getCollaborationIDForTrustedContact(contact: TrustedContactInterface): string {
return this.buildCollaborationId({
version: Version1CollaborationId,

View File

@@ -34,6 +34,7 @@ export interface ContactServiceInterface extends AbstractService<ContactServiceE
findContact(userUuid: string): TrustedContactInterface | undefined
findContactForServerUser(user: SharedVaultUserServerHash): TrustedContactInterface | undefined
findContactForInvite(invite: SharedVaultInviteServerHash): TrustedContactInterface | undefined
findSenderContactForInvite(invite: SharedVaultInviteServerHash): TrustedContactInterface | undefined
getItemSignatureStatus(item: DecryptedItemInterface): ItemSignatureValidationResult
}