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

contact.stranger() still returns true after adding friends between bot and user #293

Closed
grepug opened this issue Mar 3, 2017 · 1 comment

Comments

@grepug
Copy link

grepug commented Mar 3, 2017

Likewise contact.stranger() still returns false after deleting friends.

Have to restart the bot to get the correct returns.

@huan huan added the bug label Mar 3, 2017
@huan
Copy link
Member

huan commented Mar 3, 2017

Thanks for catching this.

In order to solve this, you need to do an await contact.refresh() after await request.accept().

Please let me know if this works for you, and I'll make the framework do this job for you in a future commit.

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

No branches or pull requests

2 participants