summaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/WatcherConnector.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Preview/WatcherConnector.php')
-rw-r--r--lib/private/Preview/WatcherConnector.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Preview/WatcherConnector.php b/lib/private/Preview/WatcherConnector.php
index 4e6e786cec7..735aaba41a9 100644
--- a/lib/private/Preview/WatcherConnector.php
+++ b/lib/private/Preview/WatcherConnector.php
@@ -67,6 +67,8 @@ class WatcherConnector {
$this->root->listen('\OC\Files', 'postDelete', function (Node $node) {
$this->getWatcher()->postDelete($node);
});
+
+ \OC_Hook::connect('\OCP\Versions', 'rollback', $this->getWatcher(), 'versionRollback');
}
}
}