RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/views/room/providers/hooks/useUsersNameChanged.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function useUsersNameChanged has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useUsersNameChanged = () => {
    const notify = useStream('notify-logged');
    useEffect(() => {
        return notify('Users:NameChanged', ({ _id, name, username }) => {
            Messages.update(
Severity: Major
Found in apps/meteor/client/views/room/providers/hooks/useUsersNameChanged.ts - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status