mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Properly style call buttons across app, when already in a call
This commit is contained in:
@@ -28,7 +28,11 @@ import {
|
||||
} from './zkgroup';
|
||||
import { getCheckedCallLinkAuthCredentialsForToday } from '../services/groupCredentialFetcher';
|
||||
import * as durations from './durations';
|
||||
import { fromAdminKeyBytes, toAdminKeyBytes } from './callLinks';
|
||||
import {
|
||||
fromAdminKeyBytes,
|
||||
getKeyFromCallLink,
|
||||
toAdminKeyBytes,
|
||||
} from './callLinks';
|
||||
|
||||
/**
|
||||
* RingRTC conversions
|
||||
@@ -64,6 +68,12 @@ export function getCallLinkRootKeyFromUrlKey(key: string): Uint8Array {
|
||||
return CallLinkRootKey.parse(key).bytes;
|
||||
}
|
||||
|
||||
export function getRoomIdFromCallLink(url: string): string {
|
||||
const keyString = getKeyFromCallLink(url);
|
||||
const key = CallLinkRootKey.parse(keyString);
|
||||
return getRoomIdFromRootKey(key);
|
||||
}
|
||||
|
||||
export async function getCallLinkAuthCredentialPresentation(
|
||||
callLinkRootKey: CallLinkRootKey
|
||||
): Promise<CallLinkAuthCredentialPresentation> {
|
||||
|
||||
Reference in New Issue
Block a user