text
text copied to clipboard
Gracefully handle version restore
When restoring a version through the web UI we should make sure to handle this without a conflict.
Similar how https://github.com/nextcloud/richdocuments/pull/3152 does this, we can use the events to detect the restore from https://github.com/nextcloud/server/pull/40184
My suggestion is reusing (and some modify) component CollisionResolveDialog to handle the version restoring action.
The conflict dialog should already appear as the file is changed on the backend, but my idea was to skip that and resolve automatically as the restore is already a decition the user makes to overwrite the file content.
We should:
- Make sure we somehow notify other users about the restore
- Just apply the change without showing the conflict dialog