Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d095570 authored by Alexandre Roux's avatar Alexandre Roux Committed by Fahim Salam Chowdhury
Browse files

disable search

parent ed20064e
Loading
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -7,7 +7,9 @@ namespace OCA\EcloudAccounts\Filesystem;
use OC\Files\Cache\Wrapper\CacheWrapper as Wrapper;
use OCP\Constants;
use OCP\Files\Cache\ICache;
use OCP\Files\Cache\ICacheEntry;
use OCP\Files\ForbiddenException;
use OCP\Files\Search\ISearchQuery;

class CacheWrapper extends Wrapper {

@@ -44,4 +46,12 @@ class CacheWrapper extends Wrapper {
	public function remove($fileId) {
		throw new \Exception('User data cache removal is disabled.');
	}

	public function searchQuery(ISearchQuery $searchQuery) {
		return [];
	}

	public function getCacheEntryFromSearchResult(ICacheEntry $rawEntry): ?ICacheEntry {
		return null;
	}
}