Basic call link join support

This commit is contained in:
ayumi-signal 2024-02-22 13:19:50 -08:00 committed by GitHub
parent 2bfb6e7481
commit 96b3413feb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
75 changed files with 2438 additions and 509 deletions

View file

@ -21,6 +21,7 @@ import type {
NotificationClickData,
WindowsNotificationData,
} from '../../services/notifications';
import { isAdhocCallingEnabled } from '../../util/isAdhocCallingEnabled';
// It is important to call this as early as possible
window.i18n = SignalContext.i18n;
@ -52,6 +53,7 @@ window.getBuildExpiration = () => config.buildExpiration;
window.getHostName = () => config.hostname;
window.getServerTrustRoot = () => config.serverTrustRoot;
window.getServerPublicParams = () => config.serverPublicParams;
window.getGenericServerPublicParams = () => config.genericServerPublicParams;
window.getSfuUrl = () => config.sfuUrl;
window.isBehindProxy = () => Boolean(config.proxyUrl);
@ -329,6 +331,19 @@ ipc.on('start-call-lobby', (_event, { conversationId }) => {
});
});
ipc.on('start-call-link', (_event, { key }) => {
if (isAdhocCallingEnabled()) {
window.reduxActions?.calling?.startCallLinkLobby({
rootKey: key,
});
} else {
const { unknownSignalLink } = window.Events;
if (unknownSignalLink) {
unknownSignalLink();
}
}
});
ipc.on('show-window', () => {
window.IPC.showWindow();
});