Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Connect to Jitsi unmuted by default (#8909)
Browse files Browse the repository at this point in the history
  • Loading branch information
robintown authored Jun 27, 2022
1 parent a9a97d1 commit ff4e665
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/stores/VideoChannelStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ export default class VideoChannelStore extends AsyncStoreWithClient<null> {
SettingsStore.setValue("videoInputMuted", null, SettingLevel.DEVICE, value);
}

public connect = async (roomId: string, audioDevice: MediaDeviceInfo, videoDevice: MediaDeviceInfo) => {
public connect = async (
roomId: string,
audioDevice: MediaDeviceInfo | null,
videoDevice: MediaDeviceInfo | null,
) => {
if (this.activeChannel) await this.disconnect();

const jitsi = getVideoChannel(roomId);
Expand Down Expand Up @@ -202,8 +206,8 @@ export default class VideoChannelStore extends AsyncStoreWithClient<null> {
},
);
messaging.transport.send(ElementWidgetActions.JoinCall, {
audioDevice: audioDevice?.label,
videoDevice: videoDevice?.label,
audioDevice: audioDevice?.label ?? null,
videoDevice: videoDevice?.label ?? null,
});
try {
await Promise.race([waitForJoin, dontStopMessaging]);
Expand Down

0 comments on commit ff4e665

Please sign in to comment.