Closed Kuroosh closed 2 years ago
Same here, every first group message after a restart emits onGloblalParticipantsChanged
for every member in group.
@danilocodes first group message after a restart
Ok so you start a session, a message comes in for that group, and then it participant change events for all members?
This is probably because the group metadata is being lazy loaded into the session.
Try waitForRipeSession: true
and see if it improves the situation.
The solution to this would be to map over all groups and get the metadata before registering the listener
Try
waitForRipeSession: true
and see if it improves the situation.
This works perfectly, it took a bit longer to load with this but it's ok as long as it's stable THANKS!
Works fine, thanks <3 ♥
Are you using the latest version of the library?
What type of session are you experiencing this issue on?
Legacy (Normal)
What type of host account are you experiencing this issue on?
Business account
Mode
My own code
Current Behavior
When i start the bot.. nothing happens.. but if i write a message in the Group.. it instantly calls
onGlobalParticipantsChanged
all the time.Expected Behavior
it should not spam onGlobalParticipantsChanged event as soon someone write something..
it calls it btw with the groupChangeEvent.add... it never calls the remove action .. idk why.
Steps To Reproduce
create() code
DEBUG INFO
Environment
Screenshots/Logs
No response
Anything else?
No response