Allow to unpin redacted event (#98)

This commit is contained in:
Florian Duros 2024-10-02 10:23:22 +02:00 committed by GitHub
parent 107ba592c8
commit c2c316831a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 18 deletions

View file

@ -190,6 +190,12 @@ describe("PinningUtils", () => {
expect(PinningUtils.canUnpin(matrixClient, event)).toBe(true);
});
test("should return true if the event is redacted", () => {
const event = makePinEvent({ unsigned: { redacted_because: "because" as unknown as IEvent } });
expect(PinningUtils.canUnpin(matrixClient, event)).toBe(true);
});
});
});