mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 10:58:19 +01:00
Restyle Call Link 'join call' button
This commit is contained in:
@@ -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') || '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user