Allow to unpin redacted event (#98)
This commit is contained in:
parent
107ba592c8
commit
c2c316831a
2 changed files with 16 additions and 18 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue