• v1.0.7 57f8858708

    nino released this 2026-07-27 20:56:22 -06:00 | 4 commits to master since this release

    Bug Fix: False offline modifications

    Problem

    While offline, simply viewing pages would cause the app to queue false changes. When internet returned, these changes were sent to the server, renaming page titles to "untitled".

    Root Cause

    1. Markdown round-trip (Kotlin extractText → JS markdownToBlocks → blocksToMarkdown) produced different output, triggering false auto-saves
    2. onAutoSave fired even in read-only mode (hidden editor)
    3. When pressing back, null title was passed to save operations, which converted to empty string, causing server to set title to "untitled"
    4. JS _pendingSet flag was cleared prematurely, allowing onChange to fire during content load

    Fixes

    • JS: Removed premature _pendingSet clearing in onReady callback; increased timeout to 500ms
    • Kotlin: onAutoSave now respects isEditorReadOnly - no auto-save in read-only mode
    • Kotlin: Save operations always pass current title (never null) to prevent empty title on server
    • Kotlin: Added isContentLoading flag to suppress onContentChanged during initial content load
    • Added APK versioned naming for Obtanium compatibility
    Downloads