Make avatars work in matryoshka mode

The client just didn't have a homeserver URL to perform media queries against.
This commit is contained in:
Robin Townsend 2022-10-17 01:46:44 -04:00
commit 70ba6c3c6b
2 changed files with 8 additions and 4 deletions

View file

@ -35,12 +35,14 @@ export interface UrlParams {
isPtt: boolean;
// Whether to use end-to-end encryption
e2eEnabled: boolean;
// The user's ID (only used in Matroska mode)
// The user's ID (only used in matryoshka mode)
userId: string | null;
// The display name to use for auto-registration
displayName: string | null;
// The device's ID (only used in Matroska mode)
// The device's ID (only used in matryoshka mode)
deviceId: string | null;
// The base URL of the homeserver to use for media lookups in matryoshka mode
baseUrl: string | null;
// The BCP 47 code of the language the app should use
lang: string | null;
}
@ -92,6 +94,7 @@ export const getUrlParams = (
userId: getParam("userId"),
displayName: getParam("displayName"),
deviceId: getParam("deviceId"),
baseUrl: getParam("baseUrl"),
lang: getParam("lang"),
};
};