Use the same avatar colour when creating 1:1 DM rooms (#9850)

This commit is contained in:
Michael Weimann 2023-01-05 17:05:21 +01:00 committed by GitHub
parent ecfd1736e5
commit ab9152044c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 215 additions and 60 deletions

View file

@ -62,7 +62,6 @@ describe("VoiceBroadcastRecordingPip", () => {
let infoEvent: MatrixEvent;
let recording: VoiceBroadcastRecording;
let renderResult: RenderResult;
let restoreConsole: () => void;
const renderPip = async (state: VoiceBroadcastInfoState) => {
infoEvent = mkVoiceBroadcastInfoStateEvent(roomId, state, client.getUserId() || "", client.getDeviceId() || "");
@ -85,6 +84,8 @@ describe("VoiceBroadcastRecordingPip", () => {
});
};
filterConsole("Starting load of AsyncWrapper for modal");
beforeAll(() => {
client = stubClient();
mocked(requestMediaPermissions).mockResolvedValue({
@ -105,11 +106,6 @@ describe("VoiceBroadcastRecordingPip", () => {
[MediaDeviceKindEnum.VideoInput]: [],
});
jest.spyOn(MediaDeviceHandler.instance, "setDevice").mockImplementation();
restoreConsole = filterConsole("Starting load of AsyncWrapper for modal");
});
afterAll(() => {
restoreConsole();
});
describe("when rendering a started recording", () => {