Fix screenshare for call link calls

Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2024-05-06 13:54:12 -05:00 committed by GitHub
parent 481abe09b8
commit 8efa7ace50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,6 +39,7 @@ import {
RingCancelReason,
RingRTC,
RingUpdate,
GroupCallKind,
} from '@signalapp/ringrtc';
import { uniqBy, noop, compact } from 'lodash';
@ -1757,12 +1758,21 @@ export class CallingClass {
this.setOutgoingVideoIsScreenShare(call, isPresenting);
if (source) {
ipcRenderer.send('show-screen-share', source.name);
// TODO: DESKTOP-7068
if (
call instanceof GroupCall &&
call.getKind() === GroupCallKind.CallLink
) {
return;
}
const conversation = window.ConversationController.get(conversationId);
strictAssert(conversation, 'setPresenting: conversation not found');
const { url, absolutePath } = await conversation.getAvatarOrIdenticon();
ipcRenderer.send('show-screen-share', source.name);
notificationService.notify({
conversationId,
iconPath: absolutePath,