Browse Source

e2ee: advertise e2ee support in caps

dev1
Saúl Ibarra Corretgé 5 years ago
parent
commit
86d69f5489
2 changed files with 8 additions and 0 deletions
  1. 4
    0
      JitsiConference.js
  2. 4
    0
      modules/xmpp/xmpp.js

+ 4
- 0
JitsiConference.js View File

1493
             if (features.has('http://jitsi.org/protocol/jigasi')) {
1493
             if (features.has('http://jitsi.org/protocol/jigasi')) {
1494
                 participant.setProperty('features_jigasi', true);
1494
                 participant.setProperty('features_jigasi', true);
1495
             }
1495
             }
1496
+
1497
+            if (features.has('https://jitsi.org/meet/e2ee')) {
1498
+                participant.setProperty('features_e2ee', true);
1499
+            }
1496
         })
1500
         })
1497
         .catch(() => false);
1501
         .catch(() => false);
1498
 };
1502
 };

+ 4
- 0
modules/xmpp/xmpp.js View File

171
         if (this.connection.rayo) {
171
         if (this.connection.rayo) {
172
             this.caps.addFeature('urn:xmpp:rayo:client:1');
172
             this.caps.addFeature('urn:xmpp:rayo:client:1');
173
         }
173
         }
174
+
175
+        if (browser.supportsInsertableStreams()) {
176
+            this.caps.addFeature('https://jitsi.org/meet/e2ee');
177
+        }
174
     }
178
     }
175
 
179
 
176
     /**
180
     /**

Loading…
Cancel
Save