Restyle Call Link 'join call' button

This commit is contained in:
Scott Nonnenberg
2024-07-16 19:24:56 -07:00
committed by GitHub
parent f53e956810
commit 72c6fa8884
5 changed files with 93 additions and 32 deletions

View File

@@ -18,3 +18,11 @@ export function getColorForCallLink(rootKey: string): string {
return AvatarColors[index];
}
export function getKeyFromCallLink(callLink: string): string {
const url = new URL(callLink);
const hash = url.hash.slice(1);
const hashParams = new URLSearchParams(hash);
return hashParams.get('key') || '';
}