Instead of passing dft.eventDecrypted, call it instead
So that `this` has the correct reference.
This commit is contained in:
parent
ac0416af96
commit
cfe52a2888
1 changed files with 1 additions and 1 deletions
|
@ -1318,7 +1318,7 @@ export default React.createClass({
|
||||||
|
|
||||||
// When logging out, stop tracking failures and destroy state
|
// When logging out, stop tracking failures and destroy state
|
||||||
cli.on("Session.logged_out", stopDft);
|
cli.on("Session.logged_out", stopDft);
|
||||||
cli.on("Event.decrypted", dft.eventDecrypted);
|
cli.on("Event.decrypted", (e) => dft.eventDecrypted(e));
|
||||||
|
|
||||||
const krh = new KeyRequestHandler(cli);
|
const krh = new KeyRequestHandler(cli);
|
||||||
cli.on("crypto.roomKeyRequest", (req) => {
|
cli.on("crypto.roomKeyRequest", (req) => {
|
||||||
|
|
Loading…
Reference in a new issue