apps/meteor/app/utils/server/lib/normalizeMessagesForUser.ts
Function normalizeMessagesForUser
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const normalizeMessagesForUser = async (messages: IMessage[], uid?: string): Promise<IMessage[]> => {
// if not using real names, there is nothing else to do
if (!settings.get('UI_Use_Real_Name')) {
return messages.map((message) => filterStarred(message, uid));
}