Skip to content

Commit

Permalink
Add users to local cache in server when they join the team
Browse files Browse the repository at this point in the history
  • Loading branch information
drumber-1 committed Oct 20, 2015
1 parent 6a67aa8 commit f7bb888
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions slackclient/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def process_changes(self, data):
if data["type"] == 'im_created':
channel = data["channel"]
self.server.attach_channel(channel["user"], channel["id"], [])
if data["type"] == "team_join":
user = data["user"]
self.server.parse_user_data([user])
pass


Expand Down

0 comments on commit f7bb888

Please sign in to comment.