Merge pull request #353 from havfo/feat-automutethreshold
Add autoMuteThreshold
This commit is contained in:
@@ -2976,7 +2976,9 @@ export default class RoomClient
|
||||
if (!this._muted)
|
||||
{
|
||||
await this.enableMic();
|
||||
if (peers.length > 4)
|
||||
const { autoMuteThreshold } = store.getState().settings;
|
||||
|
||||
if (autoMuteThreshold && peers.length > autoMuteThreshold)
|
||||
this.muteMic();
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ const initialState =
|
||||
notificationSounds : true,
|
||||
buttonControlBar : window.config.buttonControlBar || false,
|
||||
drawerOverlayed : window.config.drawerOverlayed || true,
|
||||
autoMuteThreshold : window.config.autoMuteThreshold || 4,
|
||||
...window.config.defaultAudio
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user