mirror of https://github.com/laurent22/joplin.git
Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>pull/11941/head^2
parent
d1d75449f5
commit
bc27f47881
|
@ -329,6 +329,7 @@ export default class ShareService {
|
|||
let recipientMasterKey: MasterKeyEntity = null;
|
||||
|
||||
if (getEncryptionEnabled()) {
|
||||
if (!recipientEmail) throw new Error(_('Please provide the recipient email'));
|
||||
const syncInfo = localSyncInfo();
|
||||
const masterKey = syncInfo.masterKeys.find(m => m.id === masterKeyId);
|
||||
if (!masterKey) throw new Error(`Cannot find master key with ID "${masterKeyId}"`);
|
||||
|
|
Loading…
Reference in New Issue