You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-09 08:42:50 +03:00
Improve live voice broadcast detection by testing if the started event has been redacted (#9780)
This commit is contained in:
@@ -75,7 +75,7 @@ describe("setUpVoiceBroadcastPreRecording", () => {
|
||||
|
||||
describe("when the preconditions fail", () => {
|
||||
beforeEach(() => {
|
||||
mocked(checkVoiceBroadcastPreConditions).mockReturnValue(false);
|
||||
mocked(checkVoiceBroadcastPreConditions).mockResolvedValue(false);
|
||||
});
|
||||
|
||||
itShouldReturnNull();
|
||||
@@ -83,7 +83,7 @@ describe("setUpVoiceBroadcastPreRecording", () => {
|
||||
|
||||
describe("when the preconditions pass", () => {
|
||||
beforeEach(() => {
|
||||
mocked(checkVoiceBroadcastPreConditions).mockReturnValue(true);
|
||||
mocked(checkVoiceBroadcastPreConditions).mockResolvedValue(true);
|
||||
});
|
||||
|
||||
describe("and there is no user id", () => {
|
||||
|
Reference in New Issue
Block a user