+
+
+ {
+ // here you can attach custom event listeners to the Jitsi Meet External API
+ // you can also store it locally to execute commands
+ }}
+ />
+
+ );
+ }
+
+ if (!activeCall) {
+ return ();
+ }
+}
+
+export default JitsiRoom;
diff --git a/src/app/organisms/room/Room.jsx b/src/app/organisms/room/Room.jsx
index de05e17d..44209836 100644
--- a/src/app/organisms/room/Room.jsx
+++ b/src/app/organisms/room/Room.jsx
@@ -1,6 +1,5 @@
import React, { useState, useEffect } from 'react';
import './Room.scss';
-import { JitsiMeeting } from '@jitsi/react-sdk';
import initMatrix from '../../../client/initMatrix';
import cons from '../../../client/state/cons';
@@ -13,7 +12,7 @@ import Welcome from '../welcome/Welcome';
import RoomView from './RoomView';
import RoomSettings from './RoomSettings';
import PeopleDrawer from './PeopleDrawer';
-import { getUsername } from '../../../util/matrixUtil';
+import Button from '../../atoms/button/Button';
function Room() {
const [roomInfo, setRoomInfo] = useState({
@@ -66,58 +65,10 @@ function Room() {
'd38dd491fefa1cfffc27f9c57f2bdb4a'
) {
return (
- {
- // here you can attach custom event listeners to the Jitsi Meet External API
- // you can also store it locally to execute commands
- }}
- />
+
+ You are already in another call, do you want to switch to this one?
+
+
);
}
diff --git a/src/app/organisms/room/Room.scss b/src/app/organisms/room/Room.scss
index 11a00074..f779cb71 100644
--- a/src/app/organisms/room/Room.scss
+++ b/src/app/organisms/room/Room.scss
@@ -17,3 +17,7 @@
display: none;
}
}
+
+.hiddenJitsiCall {
+ display:none !important;
+}
diff --git a/src/app/templates/client/Client.jsx b/src/app/templates/client/Client.jsx
index d83845b8..0ea34493 100644
--- a/src/app/templates/client/Client.jsx
+++ b/src/app/templates/client/Client.jsx
@@ -11,6 +11,7 @@ import ContextMenu, { MenuItem } from '../../atoms/context-menu/ContextMenu';
import IconButton from '../../atoms/button/IconButton';
import ReusableContextMenu from '../../atoms/context-menu/ReusableContextMenu';
import Room from '../../organisms/room/Room';
+import JitsiRoom from '../../organisms/room/JitsiRoom';
import Windows from '../../organisms/pw/Windows';
import Dialogs from '../../organisms/pw/Dialogs';
import EmojiBoardOpener from '../../organisms/emoji-board/EmojiBoardOpener';
@@ -165,6 +166,9 @@ function Client() {
onDragLeave={handleDragLeave}
onDrop={handleDrop}
>
+