Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request isQuotedMsg as property of Message #3108

Closed
aymenitc opened this issue Apr 17, 2023 · 0 comments
Closed

Request isQuotedMsg as property of Message #3108

aymenitc opened this issue Apr 17, 2023 · 0 comments

Comments

@aymenitc
Copy link

aymenitc commented Apr 17, 2023

Hello,
When this code is called, it is fast on first and second execution then it takes very long time after that.
if I cleared chat on my host client and call it again it is fast then on 3rd call it takes very long time again.
I tried many things to solve it but I couldn't.
I test all the conditions and I found the issue from quotedMsg
Idk know but this code was working fine for a year. and this issue started maybe in the beginning of this month.

if (quotedMsg && type === 'chat' && !command.startsWith('!') ) {
         
            if (message.quotedMsgObj.from == 'Xxxxxxxx@c.us'){

}
}

I thought if you could create a property of Message called isQuotedMsg which returns true or false it would be very fast to check if the message is quoting another message (reply)

Thanks for your help and work,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants