Implement sync source-only mode in ServeSession and ChangeBatcher

- Added support for a new sync mode in ServeSession that filters property changes to only include the Source property when the server indicates it is in source-only mode.
- Updated ChangeBatcher to handle the new syncSourceOnly parameter, ensuring that only relevant property changes are processed based on the server's capabilities.
- Enhanced API response to include sync_source_only flag, indicating the server's sync capabilities.
- Adjusted related functions to accommodate the new sync logic, improving data synchronization efficiency.
This commit is contained in:
Joe 2026-01-24 05:24:08 -06:00
parent 8650cdbd82
commit b30aa8280d
6 changed files with 52 additions and 8 deletions

View file

@ -106,13 +106,17 @@ function App:init()
-- Our notif is now out of date- redoing will not restore the patch
-- since we've undone even further. Dismiss the notif.
cleanup()
dismissNotif()
if dismissNotif then
dismissNotif()
end
end)
redoConnection = ChangeHistoryService.OnRedo:Once(function(redoneAction: string)
if redoneAction == action then
-- The user has restored the patch, so we can dismiss the notif
cleanup()
dismissNotif()
if dismissNotif then
dismissNotif()
end
end
end)
end)