Initial implementation of KeyRequestHandler, KeyShareDialog etc

This commit is contained in:
Richard van der Hoff 2017-05-19 09:54:29 +01:00
parent f756d231cf
commit d5bc24d9f7
3 changed files with 259 additions and 0 deletions

View file

@ -38,6 +38,7 @@ import PageTypes from '../../PageTypes';
import createRoom from "../../createRoom";
import * as UDEHandler from '../../UnknownDeviceErrorHandler';
import KeyRequestHandler from '../../KeyRequestHandler';
import { _t } from '../../languageHandler';
module.exports = React.createClass({
@ -914,6 +915,11 @@ module.exports = React.createClass({
}
}
});
const krh = new KeyRequestHandler(cli);
cli.on("crypto.roomKeyRequest", (req) => {
krh.handleKeyRequest(req);
});
},
showScreen: function(screen, params) {