-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
checkRoomJoin()
cannot get inviteeList sometimes
#248
Comments
same at my wechaty.. any workaround yet? |
When someone is invited to the group, we can see the invitation message first, which could trigger our However, the rawObj of that contact will come later, means that we might can not get the rawObj when we fire the event. To fix this, we can check the rawObj before fire the event. if there's no rawObj yet, we hold the event and check it later(like after 10 seconds) |
This is because when someone joins the room by scanning QR code, it will add a blank by wechat. I have fix this bug on #651 When someone is invited to the group, it seldom happened, 90% can detect. |
Great to hear that problem had already been fixed. It would be more professional if you could close the related issue right after you fixed it. Anyway, thanks! |
Run
npm run doctor
orwechaty run doctor
(for docker user), paste output hereExpected behavior
emit
room-join
event when someone joins the roomActual behavior
Sometimes, when someone joins the room, we cannot emit room-join event.
Paste the full output logs here with
WECHATY_LOG=silly
setThe log showed
nameMap
isn't updated with the newcomer(ffc94c25-eda9-91fa-9d80-558d101bd88e
) of the room whenroom-joined
event failed to emitted.Trying to find the reason...
First, I suggest changing
to
log.warn()
whenawait retryPromise({ max: max, backoff: backoff }, async (attempt: number) => {
catch exception.The text was updated successfully, but these errors were encountered: