Right sidebar breaks when loading workspace on mobile

When loading a workspace on mobile in version 1.7.4, the file sidebar on the right shows “no file” and the sync button disappears.

Steps to reproduce

  • Create new vault
  • Create dummy test file
  • Create workspace with file
  • Reload and open file
  • Open right sidebar

Did you follow the troubleshooting guide? Y

Expected result

The sidebar to display normally

Actual result

The file sidebar on the right shows “no file” and the sync button disappears.

Environment

SYSTEM INFO:
Operating system: ios 17.6.1 (Apple iPhone12,8)
Obsidian version: 1.7.4 (167)
API version: v1.7.4
Login status: logged in
Language: en
Catalyst license: supporter
Live preview: off
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 0
Plugins enabled: 0

RECOMMENDATIONS:
none


Additional information

Debugging the issue myself, it seems the sync plugin doesn’t properly account for reinitialising the right mobile sidebar; it appears to just add the button once and that’s it. Also app.workspace.changeLayout should be awaited when loading a workspace no?

I think this was fixed in recent releases.