[Bug] Renaming a vault sometimes forgets the vault as well

Steps to reproduce

  1. Create a vault.
  2. Rename the vault.

Expected result

The vault should be renamed normally.

Actual result

3 type of things could happen:

  1. Everything behaved normally and the vault is renamed.
  2. The renamed vault moved up/down in the list.
  3. The renamed vault disappeared.

Environment

  • Operating system: Android 10
  • Obsidian version: Mobile v1.0.4

Additional information

The vault isn’t gone, it’s just disappeared from the list, and can be recovered from manually selecting the folder in Open Folder as Vault.

No matter bugged or not, the folder is always renamed successfully.