Browse Source

fix(e2ee) removed no longer needed code

dev1
Saúl Ibarra Corretgé 3 years ago
parent
commit
6bb981532d
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      modules/e2ee/OlmAdapter.js

+ 1
- 3
modules/e2ee/OlmAdapter.js View File

92
             const localParticipantId = this._conf.myUserId();
92
             const localParticipantId = this._conf.myUserId();
93
 
93
 
94
             for (const participant of this._conf.getParticipants()) {
94
             for (const participant of this._conf.getParticipants()) {
95
-                const participantFeatures = await participant.getFeatures();
96
-
97
-                if (participantFeatures.has(FEATURE_E2EE) && localParticipantId < participant.getId()) {
95
+                if (participant.hasFeature(FEATURE_E2EE) && localParticipantId < participant.getId()) {
98
                     promises.push(this._sendSessionInit(participant));
96
                     promises.push(this._sendSessionInit(participant));
99
                 }
97
                 }
100
             }
98
             }

Loading…
Cancel
Save