Handle group call redaction (#10465)
Redacted group call events should be interpreted as terminated calls.
This commit is contained in:
parent
f1667870a0
commit
edef4cc52e
4 changed files with 25 additions and 2 deletions
|
@ -114,6 +114,14 @@ describe("CallEvent", () => {
|
|||
screen.getByText("1m 30s");
|
||||
});
|
||||
|
||||
it("shows a message if the call was redacted", () => {
|
||||
const event = room.currentState.getStateEvents(MockedCall.EVENT_TYPE, "1")!;
|
||||
jest.spyOn(event, "isRedacted").mockReturnValue(true);
|
||||
renderEvent();
|
||||
|
||||
screen.getByText("Video call ended");
|
||||
});
|
||||
|
||||
it("shows placeholder info if the call isn't loaded yet", () => {
|
||||
jest.spyOn(CallStore.instance, "getCall").mockReturnValue(null);
|
||||
jest.advanceTimersByTime(90000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue