You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
remove useless code
This commit is contained in:
@@ -1242,11 +1242,6 @@ export class MatrixEvent extends EventEmitter {
|
|||||||
public toJSON(): object {
|
public toJSON(): object {
|
||||||
const event = this.getEffectiveEvent();
|
const event = this.getEffectiveEvent();
|
||||||
|
|
||||||
// if this is a redaction then attach the redacts key
|
|
||||||
if (this.isRedaction()) {
|
|
||||||
event.redacts = this.event.redacts;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!this.isEncrypted()) {
|
if (!this.isEncrypted()) {
|
||||||
return event;
|
return event;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user