Skip to content

Commit

Permalink
switch e2ee part to ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Internxt authored and Internxt committed Oct 8, 2024
1 parent bd795cf commit 656bec7
Show file tree
Hide file tree
Showing 31 changed files with 5,448 additions and 9,056 deletions.
8 changes: 0 additions & 8 deletions JitsiParticipant.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@

import { getLogger } from '@jitsi/logger';
import { Strophe } from 'strophe.js';

import * as JitsiConferenceEvents from './JitsiConferenceEvents';
import { MediaType } from './service/RTC/MediaType';

const logger = getLogger(__filename);

/**
* Represents a participant in (i.e. a member of) a conference.
*/
Expand Down Expand Up @@ -351,11 +348,6 @@ export default class JitsiParticipant {
setProperty(name, value) {
const oldValue = this._properties[name];

if (name === 'e2ee.enabled') {
logger.info(`olm: emit PARTICIPANT_PROPERTY_CHANGED on ${name}
new value ${value} and old one is ${oldValue}`);
}

if (value !== oldValue) {
this._properties[name] = value;
this._conference.eventEmitter.emit(
Expand Down
4 changes: 4 additions & 0 deletions globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ export {};
declare global {
interface Window {
connectionTimes: any;
Olm: Window.Olm;
RTCTransformEvent: Window.RTCTransformEvent;
RTCRtpScriptTransform: Window.RTCRtpScriptTransform;
onrtctransform: Window.onrtctransform;
}
}
4 changes: 2 additions & 2 deletions modules/e2ee/Context.spec.js → modules/e2ee/Context.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ describe('E2EE Context', () => {
]);

beforeEach(() => {
sender = new Context('sender');
receiver = new Context('receiver');
sender = new Context();
receiver = new Context();
});

describe('encode function', () => {
Expand Down
Loading

0 comments on commit 656bec7

Please sign in to comment.