Lint
This commit is contained in:
		
					parent
					
						
							
								cb85733426
							
						
					
				
			
			
				commit
				
					
						456194312b
					
				
			
		
					 2 changed files with 13 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -14,7 +14,11 @@ See the License for the specific language governing permissions and
 | 
			
		|||
limitations under the License.
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
import { DEFAULT_CONFIG, ConfigOptions, ResolvedConfigOptions } from "./ConfigOptions";
 | 
			
		||||
import {
 | 
			
		||||
  DEFAULT_CONFIG,
 | 
			
		||||
  ConfigOptions,
 | 
			
		||||
  ResolvedConfigOptions,
 | 
			
		||||
} from "./ConfigOptions";
 | 
			
		||||
 | 
			
		||||
export class Config {
 | 
			
		||||
  private static internalInstance: Config;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -298,10 +298,13 @@ export function useGroupCall(groupCall: GroupCall): UseGroupCallReturnType {
 | 
			
		|||
    PosthogAnalytics.instance.eventMuteCamera.track(toggleToMute);
 | 
			
		||||
  }, [groupCall]);
 | 
			
		||||
 | 
			
		||||
  const setMicrophoneMuted = useCallback((setMuted) => {
 | 
			
		||||
    groupCall.setMicrophoneMuted(setMuted);
 | 
			
		||||
    PosthogAnalytics.instance.eventMuteMicrophone.track(setMuted);
 | 
			
		||||
  }, [groupCall]);
 | 
			
		||||
  const setMicrophoneMuted = useCallback(
 | 
			
		||||
    (setMuted) => {
 | 
			
		||||
      groupCall.setMicrophoneMuted(setMuted);
 | 
			
		||||
      PosthogAnalytics.instance.eventMuteMicrophone.track(setMuted);
 | 
			
		||||
    },
 | 
			
		||||
    [groupCall]
 | 
			
		||||
  );
 | 
			
		||||
 | 
			
		||||
  const toggleMicrophoneMuted = useCallback(() => {
 | 
			
		||||
    const toggleToMute = !groupCall.isMicrophoneMuted();
 | 
			
		||||
| 
						 | 
				
			
			@ -399,7 +402,6 @@ export function useGroupCall(groupCall: GroupCall): UseGroupCallReturnType {
 | 
			
		|||
    }
 | 
			
		||||
  }, [t]);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  useEffect(() => {
 | 
			
		||||
    const keyDownListener = (event) => {
 | 
			
		||||
      if (event.key === "m") {
 | 
			
		||||
| 
						 | 
				
			
			@ -422,10 +424,9 @@ export function useGroupCall(groupCall: GroupCall): UseGroupCallReturnType {
 | 
			
		|||
    return () => {
 | 
			
		||||
      window.removeEventListener("keydown", keyDownListener, true);
 | 
			
		||||
      window.removeEventListener("keyup", keyUpListener, true);
 | 
			
		||||
    }
 | 
			
		||||
    };
 | 
			
		||||
  }, [toggleMicrophoneMuted, setMicrophoneMuted]);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  return {
 | 
			
		||||
    state,
 | 
			
		||||
    calls,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue