Migrate broadcast MSC3912 redaction (#11014)

This commit is contained in:
Michael Weimann 2023-06-07 15:24:01 +02:00 committed by GitHub
parent 4c73903274
commit 1091e14a3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -94,7 +94,7 @@ describe("ConfirmRedactDialog", () => {
await confirmDeleteVoiceBroadcastStartedEvent();
});
it("should call redact without `with_relations`", () => {
it("should call redact without `with_rel_types`", () => {
expect(client.redactEvent).toHaveBeenCalledWith(roomId, mxEvent.getId(), undefined, {});
});
});
@ -110,9 +110,9 @@ describe("ConfirmRedactDialog", () => {
await confirmDeleteVoiceBroadcastStartedEvent();
});
it("should call redact with `with_relations`", () => {
it("should call redact with `with_rel_types`", () => {
expect(client.redactEvent).toHaveBeenCalledWith(roomId, mxEvent.getId(), undefined, {
with_relations: [RelationType.Reference],
with_rel_types: [RelationType.Reference],
});
});
});