fix: results now showing up in ios app

pull/224/head
Brtbr 2022-10-26 19:29:28 +02:00
parent c80135c4ce
commit c9c9e023ab
1 changed files with 11 additions and 11 deletions

View File

@ -77,17 +77,17 @@ class Provider implements IProvider {
$query $query
); );
$results = array_map(function(Room $room) { $results = [];
return [
new SearchResultEntry( foreach($rooms as $room) {
'', $results[] = new SearchResultEntry(
$room->getName(), '',
$this->getAccess($room->getAccess()), $room->getName(),
$this->urlGenerator->linkToRoute('bbb.page.index'), $this->getAccess($room->getAccess()),
$this->urlGenerator->imagePath('bbb', 'app-grey.svg') $this->urlGenerator->linkToRouteAbsolute('bbb.page.index'),
) $this->urlGenerator->imagePath('bbb', 'app-grey.svg')
]; );
}, $rooms); }
return SearchResult::complete( return SearchResult::complete(
'BBB', 'BBB',