Skip to content
Snippets Groups Projects
Unverified Commit 3894dcb7 authored by Joas Schilling's avatar Joas Schilling
Browse files

Hardcode Talk namespace to fix install due to global route

parent f3978666
No related branches found
No related tags found
No related merge requests found
...@@ -68,8 +68,19 @@ class App { ...@@ -68,8 +68,19 @@ class App {
if (isset($appInfo['namespace'])) { if (isset($appInfo['namespace'])) {
self::$nameSpaceCache[$appId] = trim($appInfo['namespace']); self::$nameSpaceCache[$appId] = trim($appInfo['namespace']);
} else { } else {
// if the tag is not found, fall back to uppercasing the first letter if ($appId !== 'spreed') {
self::$nameSpaceCache[$appId] = ucfirst($appId); // if the tag is not found, fall back to uppercasing the first letter
self::$nameSpaceCache[$appId] = ucfirst($appId);
} else {
// For the Talk app (appid spreed) the above fallback doesn't work.
// This leads to a problem when trying to install it freshly,
// because the apps namespace is already registered before the
// app is downloaded from the appstore, because of the hackish
// global route index.php/call/{token} which is registered via
// the core/routes.php so it does not have the app namespace.
// @ref https://github.com/nextcloud/server/pull/19433
self::$nameSpaceCache[$appId] = 'Talk';
}
} }
return $topNamespace . self::$nameSpaceCache[$appId]; return $topNamespace . self::$nameSpaceCache[$appId];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment