|
|
@ -60,14 +60,21 @@ class ModuleController extends AbstractController |
|
|
|
|
|
|
|
|
|
|
|
$list = []; |
|
|
|
$list = []; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$rooms = explode('|', $this->getParameter('app.kevacoin.room.namespaces')); |
|
|
|
|
|
|
|
|
|
|
|
foreach ((array) $client->kevaListNamespaces() as $value) |
|
|
|
foreach ((array) $client->kevaListNamespaces() as $value) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
// Get current room namespace (could be third-party) |
|
|
|
if ($value['namespaceId'] == $request->get('namespace')) |
|
|
|
if ($value['namespaceId'] == $request->get('namespace')) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$name = $value['displayName']; |
|
|
|
$name = $value['displayName']; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$list[$value['namespaceId']] = $value['displayName']; |
|
|
|
// Check namespace enabled as room in settings |
|
|
|
|
|
|
|
if (in_array($value['namespaceId'], $rooms)) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$list[$value['namespaceId']] = $value['displayName']; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
asort($list); |
|
|
|
asort($list); |
|
|
|