Desktop app doesn't decrypt file attached on Android if app is quit too early

Hi all, apologies if this has already been reported but I couldn't find anything similar here.

Android version: Joplin 1.3.13
Desktop version: Joplin 1.3.18
OS: macOS 10.15.7 / Android 10

Steps to reproduce

  • Create a new note on Android and attach a file (Joplin ID 4958f94ba3fd4f1c8fd8aa2737c69b42).
  • Quit the app before the file is uploaded.
  • Reopen the app and let it sync.
  • Open desktop app and start sync.
  • Verify that note is there but attachment isn't.
  • Verify that resource is still encrypted (i.e. 4958f94ba3fd4f1c8fd8aa2737c69b42.crypted is present but 4958f94ba3fd4f1c8fd8aa2737c69b42.jpg is not in ~/.config/joplin-desktop/resources).

This happens regardless of how the file is attached (i.e. even when sharing from another app).
This does not happen if the app isn't quit before the file is synced the first time.

Let me know if you need anything else or if you'd like me to post this as a GH issue instead. Cheers and thanks for this wonderful app!

I don't think the steps listed above would allow replicating this issue. If the .crypted file is there on the desktop app, it will be decrypted eventually and it doesn't matter what was done on the Android app.

Yes, files are decrypted once the desktop app is quit and reopened. My point is that without doing that the decryption process doesn't kick in for some reason. There don't seem to be useful logs in the dev tools but let me know if there is anything else I could provide. Thanks!