RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/hooks/roomActions/useThreadRoomAction.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function useThreadRoomAction has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useThreadRoomAction = () => {
    const enabled = useSetting('Threads_enabled', false);
    const subscription = useRoomSubscription();

    const tunread = subscription?.tunread?.length ?? 0;
Severity: Minor
Found in apps/meteor/client/hooks/roomActions/useThreadRoomAction.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status