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
);
$results = array_map(function(Room $room) {
return [
new SearchResultEntry(
'',
$room->getName(),
$this->getAccess($room->getAccess()),
$this->urlGenerator->linkToRoute('bbb.page.index'),
$this->urlGenerator->imagePath('bbb', 'app-grey.svg')
)
];
}, $rooms);
$results = [];
foreach($rooms as $room) {
$results[] = new SearchResultEntry(
'',
$room->getName(),
$this->getAccess($room->getAccess()),
$this->urlGenerator->linkToRouteAbsolute('bbb.page.index'),
$this->urlGenerator->imagePath('bbb', 'app-grey.svg')
);
}
return SearchResult::complete(
'BBB',