Implement Megolm key importing
This commit is contained in:
parent
e23deac1bb
commit
b85f53cadd
3 changed files with 194 additions and 15 deletions
13
src/index.js
13
src/index.js
|
@ -27,16 +27,3 @@ module.exports.resetSkin = function() {
|
|||
module.exports.getComponent = function(componentName) {
|
||||
return Skinner.getComponent(componentName);
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
window.importKeys = function(password, data) {
|
||||
const arrayBuffer = new TextEncoder().encode(data).buffer;
|
||||
return MegolmExportEncryption.decryptMegolmKeyFile(
|
||||
arrayBuffer, password
|
||||
).then((j) => {
|
||||
const k = JSON.parse(j);
|
||||
return MatrixClientPeg.get().importRoomKeys(k);
|
||||
});
|
||||
};
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue