apps/meteor/app/ui-message/client/findParentMessage.ts
Function findParentMessage
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const findParentMessage = (() => {
const waiting: string[] = [];
let resolve: (resolved: IMessage[] | PromiseLike<IMessage[]>) => void;
let pending = new Promise<IMessage[]>((r) => {
resolve = r;