You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-06 23:56:13 +02:00
This commit is contained in:
@ -506,6 +506,13 @@ export default class BaseItem extends BaseModel {
|
||||
masterKeyId: share && share.master_key_id ? share.master_key_id : '',
|
||||
});
|
||||
} catch (error) {
|
||||
if (error.code === 'masterKeyNotLoaded' && error.masterKeyId) {
|
||||
this.dispatch?.({
|
||||
type: 'MASTERKEY_ADD_NOT_LOADED',
|
||||
id: error.masterKeyId,
|
||||
});
|
||||
}
|
||||
|
||||
const msg = [`Could not encrypt item ${item.id}`];
|
||||
if (error && error.message) msg.push(error.message);
|
||||
const newError = new Error(msg.join(': '));
|
||||
|
Reference in New Issue
Block a user