Fix more type definitions

This commit is contained in:
Michael Telatynski 2021-06-17 14:24:53 +01:00
parent f929d2ee5f
commit 02e72d8b04
11 changed files with 32 additions and 33 deletions

View file

@ -300,7 +300,7 @@ export default class EventIndex extends EventEmitter {
}
private eventToJson(ev: MatrixEvent) {
const jsonEvent = ev.toJSON();
const jsonEvent: any = ev.toJSON();
const e = ev.isEncrypted() ? jsonEvent.decrypted : jsonEvent;
if (ev.isEncrypted()) {