1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-07 21:23:00 +03:00

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
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],
});
});
});