End-to-end encryption status is both enabled and disabled

Does anyone have a suggestion for what to do when the Nextcloud desktop app (version 3.14 on macOS) thinks end-to-end encryption is enabled even though it isn’t. End-to-end encryption is disabled according to the server (Nextcloud 30.0) and the iOS app, but the desktop client still thinks it is enabled.

(Even though the desktop app says that end-to-end encryption is enabled, it behaves like it isn’t. Clicking on “set up encryption” shows the modal for enabling end-to-end encryption for the first time, though no mnemonic gets generated and the server still thinks that end-to-end encryption is disabled.)

Here’s what I’ve already tried.

  • Reinstalling the desktop app.
  • Removing the account from the desktop app.
  • Uninstalling and removing the end-to-end encryption server app (1.16.1).

I’ve also made sure that there are no left-over encrypted folders from the previous time I enabled end-to-end encryption for the account and that there are no keys to revoke from example.com/settings/user/security.

I found the reason why the macOS app thought end-to-end encryption was enabled. There was an old key stored in the macOS keychain. After removing (renaming) the key, the status is correctly shown as disabled on all devices.

I can still not enable end-to-end encryption, but that’s another issue.