Properly style call buttons across app, when already in a call

This commit is contained in:
Scott Nonnenberg
2024-08-27 06:48:41 +10:00
committed by GitHub
parent 3c25092f50
commit c251867699
39 changed files with 610 additions and 189 deletions

View File

@@ -18,11 +18,3 @@ 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') || '';
}