fix(journals): harden privacy toggle and add effect diagnostics
- Ensured content is decrypted before allowing conversion to plain text. - Added detailed diagnostic logging to reactive effects to debug loop issues. - Integrated background sync skip logic to preserve decrypted state.
This commit is contained in:
@@ -81,7 +81,7 @@ export async function decrypt_journal_entry(
|
||||
}
|
||||
}
|
||||
|
||||
console.log(`decrypt_journal_entry: SUCCESS. Content length: ${decrypted_text.length}. Preview: ${decrypted_text.substring(0, 20)}...`);
|
||||
console.log(`decrypt_journal_entry: SUCCESS. Source: ${key_source}, Content length: ${decrypted_text.length}. Preview: ${decrypted_text.substring(0, 30).replace(/\n/g, ' ')}...`);
|
||||
return {
|
||||
success: true,
|
||||
content: decrypted_text,
|
||||
|
||||
Reference in New Issue
Block a user