RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/hooks/roomActions/useWebRTCVideoRoomAction.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useWebRTCVideoRoomAction has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useWebRTCVideoRoomAction = () => {
    const enabled = useSetting('WebRTC_Enabled', false);
    const room = useRoom();
    const federated = isRoomFederated(room);
    const callProvider = useSetting<string>('Omnichannel_call_provider', 'default-provider');
Severity: Minor
Found in apps/meteor/client/hooks/roomActions/useWebRTCVideoRoomAction.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status