mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
Adapt to E2EE changes in lib-jitsi-meet. Notably:
---
e2ee: introduce per-participant randomly generated keys
This the second stage in our E2EE journey.
Instead of using a single pre-shared passphrase for deriving the key used for
E2EE, we now establish a secure E2EE communication channel amongst peers.
This channel is implemented using libolm, using XMPP groupchat or JVB channels
as the transport.
Once the secure E2EE channel has been established each participant will generate
a random 32 byte key and exchange it over this channel.
Keys are rotated (well, just re-created at the moment) when a participant joins
or leaves.
---
54 lines
1.7 KiB
JavaScript
54 lines
1.7 KiB
JavaScript
/* application specific logic */
|
|
|
|
import 'jquery';
|
|
import 'jquery-contextmenu';
|
|
import 'jQuery-Impromptu';
|
|
|
|
import 'olm';
|
|
|
|
import conference from './conference';
|
|
import API from './modules/API';
|
|
import UI from './modules/UI/UI';
|
|
import keyboardshortcut from './modules/keyboardshortcut/keyboardshortcut';
|
|
import remoteControl from './modules/remotecontrol/RemoteControl';
|
|
import translation from './modules/translation/translation';
|
|
|
|
// Initialize Olm as early as possible.
|
|
if (window.Olm) {
|
|
window.Olm.init();
|
|
}
|
|
|
|
window.APP = {
|
|
API,
|
|
conference,
|
|
|
|
// Used by do_external_connect.js if we receive the attach data after
|
|
// connect was already executed. status property can be 'initialized',
|
|
// 'ready', or 'connecting'. We are interested in 'ready' status only which
|
|
// means that connect was executed but we have to wait for the attach data.
|
|
// In status 'ready' handler property will be set to a function that will
|
|
// finish the connect process when the attach data or error is received.
|
|
connect: {
|
|
handler: null,
|
|
status: 'initialized'
|
|
},
|
|
|
|
// Used for automated performance tests.
|
|
connectionTimes: {
|
|
'index.loaded': window.indexLoadedTime
|
|
},
|
|
|
|
keyboardshortcut,
|
|
remoteControl,
|
|
translation,
|
|
UI
|
|
};
|
|
|
|
// TODO The execution of the mobile app starts from react/index.native.js.
|
|
// Similarly, the execution of the Web app should start from react/index.web.js
|
|
// for the sake of consistency and ease of understanding. Temporarily though
|
|
// because we are at the beginning of introducing React into the Web app, allow
|
|
// the execution of the Web app to start from app.js in order to reduce the
|
|
// complexity of the beginning step.
|
|
import './react';
|