apps/meteor/client/views/room/hooks/useMessageListNavigation.ts
Function useMessageListNavigation
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useMessageListNavigation = (): { messageListRef: RefCallback<HTMLElement> } => {
const roomFocusManager = useFocusManager();
const messageListRef = useCallback(
(node: HTMLElement | null) => {
Function messageListRef
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(node: HTMLElement | null) => {
let lastMessageFocused: HTMLElement | null = null;
let initialFocus = true;
if (!node) {