Avoid using deprecated exports & methods from matrix-js-sdk (#12359)
This commit is contained in:
parent
11912a0da0
commit
4941327c78
24 changed files with 73 additions and 80 deletions
|
@ -74,9 +74,7 @@ export default class JSONExporter extends Exporter {
|
|||
logger.log("Error fetching file: " + err);
|
||||
}
|
||||
}
|
||||
const jsonEvent: any = mxEv.toJSON();
|
||||
const clearEvent = mxEv.isEncrypted() ? jsonEvent.decrypted : jsonEvent;
|
||||
return clearEvent;
|
||||
return mxEv.getEffectiveEvent();
|
||||
}
|
||||
|
||||
protected async createOutput(events: MatrixEvent[]): Promise<string> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue