apps/meteor/client/views/room/providers/hooks/useUsersNameChanged.ts
Function useUsersNameChanged
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useUsersNameChanged = () => {
const notify = useStream('notify-logged');
useEffect(() => {
return notify('Users:NameChanged', ({ _id, name, username }) => {
Messages.update(