Fix screenshare for call link calls
This commit is contained in:
parent
c4ba3c44ce
commit
711f7d3352
1 changed files with 11 additions and 1 deletions
|
@ -39,6 +39,7 @@ import {
|
||||||
RingCancelReason,
|
RingCancelReason,
|
||||||
RingRTC,
|
RingRTC,
|
||||||
RingUpdate,
|
RingUpdate,
|
||||||
|
GroupCallKind,
|
||||||
} from '@signalapp/ringrtc';
|
} from '@signalapp/ringrtc';
|
||||||
import { uniqBy, noop, compact } from 'lodash';
|
import { uniqBy, noop, compact } from 'lodash';
|
||||||
|
|
||||||
|
@ -1758,12 +1759,21 @@ export class CallingClass {
|
||||||
this.setOutgoingVideoIsScreenShare(call, isPresenting);
|
this.setOutgoingVideoIsScreenShare(call, isPresenting);
|
||||||
|
|
||||||
if (source) {
|
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);
|
const conversation = window.ConversationController.get(conversationId);
|
||||||
strictAssert(conversation, 'setPresenting: conversation not found');
|
strictAssert(conversation, 'setPresenting: conversation not found');
|
||||||
|
|
||||||
const { url, absolutePath } = await conversation.getAvatarOrIdenticon();
|
const { url, absolutePath } = await conversation.getAvatarOrIdenticon();
|
||||||
|
|
||||||
ipcRenderer.send('show-screen-share', source.name);
|
|
||||||
notificationService.notify({
|
notificationService.notify({
|
||||||
conversationId,
|
conversationId,
|
||||||
iconPath: absolutePath,
|
iconPath: absolutePath,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue