mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 11:57:48 +00:00
feat(branding) allow invite links to be branded
This commit is contained in:
committed by
Hristo Terezov
parent
6453ceb048
commit
8a4fb72eae
@@ -54,7 +54,17 @@ export function getInviteURL(stateOrGetState: Function | Object): string {
|
||||
throw new Error('Can not get invite URL - the app is not ready');
|
||||
}
|
||||
|
||||
return getURLWithoutParams(locationURL).href;
|
||||
const { inviteDomain } = state['features/dynamic-branding'];
|
||||
const urlWithoutParams = getURLWithoutParams(locationURL);
|
||||
|
||||
if (inviteDomain) {
|
||||
const meetingId
|
||||
= state['features/base/config'].brandingRoomAlias || urlWithoutParams.pathname;
|
||||
|
||||
return `${inviteDomain}/${meetingId}`;
|
||||
}
|
||||
|
||||
return urlWithoutParams.href;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user