diff --git a/src/etesync-helpers.ts b/src/etesync-helpers.ts index 0e35f0c..d877b68 100644 --- a/src/etesync-helpers.ts +++ b/src/etesync-helpers.ts @@ -13,9 +13,18 @@ export function createJournalEntry( const syncEntry = new EteSync.SyncEntry(); syncEntry.action = action; - syncEntry.content = content; + return createJournalEntryFromSyncEntry(etesync, userInfo, journal, prevUid, syncEntry); +} + +export function createJournalEntryFromSyncEntry( + etesync: CredentialsData, + userInfo: UserInfoData, + journal: EteSync.Journal, + prevUid: string | null, + syncEntry: EteSync.SyncEntry) { + const derived = etesync.encryptionKey; let cryptoManager: EteSync.CryptoManager;