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

Commit b9f931b9 authored by Akhil's avatar Akhil 🙂
Browse files

Merge branch 'dev/disable_search' into 'main'

disable search

See merge request !170
parents 9edf66f5 f2cf0ae8
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;
	}
}