import { P2P_MESSAGE_TYPE } from '../../../enum/p2p'; import P2PMessageListing from '../../../pages/p2p/p2pMessageListing.page'; export async function checkIsP2PThreadExisitng(threadType, subject, falseCase) { const p2pMessageListing = new P2PMessageListing(); if (threadType == P2P_MESSAGE_TYPE.GENERAL) { await p2pMessageListing.getMessageBySubject(subject).checkIsExisting(falseCase); } }