Calling support

This commit is contained in:
Peter Thatcher 2020-06-04 11:16:19 -07:00 committed by Scott Nonnenberg
parent 83574eb067
commit d3a27a6442
72 changed files with 3864 additions and 191 deletions

View file

@ -91,6 +91,7 @@
this.startConnectionListener();
} else {
this.setupLeftPane();
this.setupCallManagerUI();
}
Whisper.events.on('pack-install-failed', () => {
@ -106,6 +107,19 @@
events: {
click: 'onClick',
},
setupCallManagerUI() {
if (!window.CALLING) {
return;
}
if (this.callManagerView) {
return;
}
this.callManagerView = new Whisper.ReactWrapperView({
className: 'call-manager-wrapper',
JSX: Signal.State.Roots.createCallManager(window.reduxStore),
});
this.$('.call-manager-placeholder').append(this.callManagerView.el);
},
setupLeftPane() {
if (this.leftPaneView) {
return;
@ -144,6 +158,7 @@
},
onEmpty() {
this.setupLeftPane();
this.setupCallManagerUI();
const view = this.appLoadingScreen;
if (view) {