apps/meteor/client/views/room/MessageList/hooks/useMessageBody.tsx
Function useMessageBody
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useMessageBody = (message: IMessage | undefined, rid: string): string | Root => {
const subscription = useUserSubscription(rid);
const autoTranslateOptions = useAutoTranslate(subscription);
const customDomains = useAutoLinkDomains();
Avoid too many return
statements within this function. Open
Open
return attachment.title;
Avoid too many return
statements within this function. Open
Open
return '';