MM-52857 - Add call-join-request to calls widget (#2751)

* add call-join-request to calls widget

* targetID -> callID

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
Christopher Poile
2023-06-26 10:17:47 -04:00
committed by GitHub
parent 850573326c
commit 0728ddf42f
6 changed files with 71 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ import {
CALLS_WIDGET_SHARE_SCREEN,
CLOSE_DOWNLOADS_DROPDOWN,
CALLS_ERROR,
CALLS_JOIN_REQUEST,
} from 'common/communication';
const UNREAD_COUNT_INTERVAL = 1000;
@@ -352,6 +353,16 @@ ipcRenderer.on(CALLS_ERROR, (event, message) => {
);
});
ipcRenderer.on(CALLS_JOIN_REQUEST, (event, message) => {
window.postMessage(
{
type: CALLS_JOIN_REQUEST,
message,
},
window.location.origin,
);
});
/* eslint-enable no-magic-numbers */
window.addEventListener('resize', () => {