From 87480a91372c7f893e08fbde6b46981bac14636a Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Fri, 22 May 2020 21:40:08 +0200 Subject: Use user instead of slack_name for users.info users.info takes the id, not the name of the user. This worked in practice before this change because it was only called for unknown users, and unknown users gets the name set to the id. --- wee_slack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wee_slack.py') diff --git a/wee_slack.py b/wee_slack.py index d29627d..ee0e8bd 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2068,7 +2068,7 @@ class SlackDMChannel(SlackChannel): def set_related_server(self, team): super(SlackDMChannel, self).set_related_server(team) if self.user not in self.team.users: - s = SlackRequest(self.team, 'users.info', {'user': self.slack_name}, channel=self) + s = SlackRequest(self.team, 'users.info', {'user': self.user}, channel=self) self.eventrouter.receive(s) def create_buffer(self): -- cgit