From 3452e39b9df3b2767254676eb82a78ed9bf6fd98 Mon Sep 17 00:00:00 2001 From: Jacob Fink Date: Tue, 30 May 2023 12:55:40 -0400 Subject: [PATCH] update send service to use new crypto service methods --- libs/common/src/tools/send/services/send.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/common/src/tools/send/services/send.service.ts b/libs/common/src/tools/send/services/send.service.ts index eddc35ae79..b4debcda91 100644 --- a/libs/common/src/tools/send/services/send.service.ts +++ b/libs/common/src/tools/send/services/send.service.ts @@ -143,9 +143,9 @@ export class SendService implements InternalSendServiceAbstraction { } decSends = []; - const hasKey = await this.cryptoService.hasKey(); + const hasKey = await this.cryptoService.hasUserKey(); if (!hasKey) { - throw new Error("No key."); + throw new Error("No user key found."); } const promises: Promise[] = []; @@ -249,7 +249,7 @@ export class SendService implements InternalSendServiceAbstraction { const sends = Object.values(sendsMap || {}).map((f) => new Send(f)); this._sends.next(sends); - if (await this.cryptoService.hasKey()) { + if (await this.cryptoService.hasUserKey()) { this._sendViews.next(await this.decryptSends(sends)); } }