Browse Source

auto commit v2

rzv_feb
jfinn 2 years ago
parent
commit
eed1ec9e9c
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      modules/e2ee/ManagedKeyHandler.js

+ 4
- 1
modules/e2ee/ManagedKeyHandler.js View File

36
      * Build a new AutomaticKeyHandler instance, which will be used in a given conference.
36
      * Build a new AutomaticKeyHandler instance, which will be used in a given conference.
37
      */
37
      */
38
     constructor(conference) {
38
     constructor(conference) {
39
-        
39
+
40
 
40
 
41
         super(conference);
41
         super(conference);
42
         console.log("ManagedKeyHandler _CONSTRUCTED???????")
42
         console.log("ManagedKeyHandler _CONSTRUCTED???????")
262
      * @private
262
      * @private
263
      */
263
      */
264
     _generateKey() {
264
     _generateKey() {
265
+        if (this.mkh_dev){
266
+            return glob_u.tvar.e2ee.key1
267
+        }
265
         return window.crypto.getRandomValues(new Uint8Array(32));
268
         return window.crypto.getRandomValues(new Uint8Array(32));
266
     }
269
     }
267
 }
270
 }

Loading…
Cancel
Save