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

api_call should update server state in rtm mode #74

Merged
2 commits merged into from
Feb 28, 2016

Conversation

elementc
Copy link
Contributor

Fix for #73. Also closes #47 by way of solving the same problem that #70 does. I'm closing #70 myself.

self.server.attach_channel(kwargs["user"], result["channel"]["id"], [])
elif method in ('mpim.open', 'groups.create', 'groups.createchild'):
if "ok" in result and result["ok"]:
self.server.attach_channel(result['group']['name'], result['group']['id'], [])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both here and line 32 I think you should pass through the members attribute rather than an empty array or passing a None

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was emulating the style of _client.py:SlackClient:process_changes, which also passes an empty. I'll update it, one moment.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'm not 100% familiar with the python client yet, so I think you should pass the members array, but that's not canon.

ghost pushed a commit that referenced this pull request Feb 28, 2016
api_call should update server state in rtm mode
@ghost ghost merged commit b33c4bc into slackapi:master Feb 28, 2016
@ghost
Copy link

ghost commented Feb 28, 2016

Ok, I'll look to push a 1.0.0 release to pypi later today. Thanks for contributing!

@jek584
Copy link

jek584 commented Feb 29, 2016

@elementc, nice job!

c-goosen pushed a commit to c-goosen/python-slackclient that referenced this pull request Jun 18, 2019
api_call should update server state in rtm mode
This pull request was closed.
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

Successfully merging this pull request may close these issues.

api_call method returning string, not dict
2 participants