mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix: encrypt items before sync
This commit is contained in:
@@ -59,6 +59,11 @@ class RealtimeMerger {
|
||||
attachment: {
|
||||
set: async (item) => {
|
||||
const remoteAttachment = await this._deserialize(item);
|
||||
if (remoteAttachment.deleted) {
|
||||
await this._db.attachments.merge(remoteAttachment);
|
||||
return;
|
||||
}
|
||||
|
||||
const localAttachment = this._db.attachments.attachment(
|
||||
remoteAttachment.metadata.hash
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user