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