apps/meteor/client/views/room/MessageList/hooks/useLoadSurroundingMessages.ts
Function useLoadSurroundingMessages
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useLoadSurroundingMessages = (msgId?: IMessage['_id']) => {
const queryClient = useQueryClient();
const getMessage = useEndpoint('GET', '/v1/chat.getMessage');
useEffect(() => {