You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Minor cleanup of getPermalinkConstructor
This commit is contained in:
@@ -287,8 +287,9 @@ export function isPermalinkHost(host: string): boolean {
|
||||
}
|
||||
|
||||
function getPermalinkConstructor(): PermalinkConstructor {
|
||||
if (SdkConfig.get()['permalinkPrefix'] && SdkConfig.get()['permalinkPrefix'] !== matrixtoBaseUrl) {
|
||||
return new RiotPermalinkConstructor(SdkConfig.get()['permalinkPrefix']);
|
||||
const riotPrefix = SdkConfig.get()['permalinkPrefix'];
|
||||
if (riotPrefix && riotPrefix !== matrixtoBaseUrl) {
|
||||
return new RiotPermalinkConstructor(riotPrefix);
|
||||
}
|
||||
|
||||
return new SpecPermalinkConstructor();
|
||||
|
||||
Reference in New Issue
Block a user