Properly style call buttons across app, when already in a call
This commit is contained in:
@@ -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') || '';
|
||||
}
|
||||
|
Reference in New Issue
Block a user