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

variable shadowing, incorrect delete #276

Open
DmitryGolovin-azur opened this issue Jul 1, 2024 · 1 comment
Open

variable shadowing, incorrect delete #276

DmitryGolovin-azur opened this issue Jul 1, 2024 · 1 comment

Comments

@DmitryGolovin-azur
Copy link

Hi. I noticed a problem, when I run sequence V1 -> U1 (on new picture) with websocket. I don't see results.

I found the problem here: messageCreate -> done -> filterMessages -> getEventByContent. getEventByContent works wrong because waitMjEvents contains old values. I also found the cause of this inconsistence (variable shadowing):

var nonce = await onmodal(oldnonce, id);

this.removeWaitMjEvent(nonce);

this.removeWaitMjEvent(nonce);

@DmitryGolovin-azur
Copy link
Author

you can remove word var, or add nonce to the params of handleImageMessage

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

1 participant