Skip to content

Conversation

@personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Oct 27, 2025

Summary

This change prevents the "Unshare" button from being clicked while a sync is in progress.

This pull request may resolve #13518, if #13518 is related to a conflict between the share and unshare actions or related to an outdated jop_share_id property on the server.

Details

When unsharing a folder, Joplin Server determines which items to mark as deleted based on the jop_share_id property:

Details

Since jop_share_id comes from the Joplin clients' share_id property, the Joplin clients need to be fully synced for the results of the ... .where('items.jop_share_id', '=', shareId) query to match the data present locally.

Testing plan

  1. Right-click on a notebook and click "Share notebook...".
  2. Add a user by email to the share.
  3. Verify that 1) the "Unshare" button isn't visible until "Synchronizing..." is and 2) "Unshare" is greyed out/disabled while "Synchronizing..." is visible.
Screen recording
Screencast.from.2025-10-27.10-19-05.webm

May prevent issues similar to laurent22#13518, if laurent22#13518 is related to a conflict between the "unshare"
action and the "assign intial share IDs" action.
…by using editor-specific state

Fixes an issue where old search highlighting would persist when a new query was set. However, with this change, moving focus to a secondary window results in nothing being highlighted. Moving focus back to the primary window restores the highlights. The remaining issue may be related to window-specific state that should be global (in app.reducer.ts or in reducer.ts).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shared notebook disappears while data is being synced?

2 participants