aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wee_slack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 64bf9e1..4d95fa8 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2081,11 +2081,11 @@ class SlackMPDMChannel(SlackChannel):
"""
def __init__(self, eventrouter, team_users, myidentifier, **kwargs):
- kwargs["name"] = ','.join(
+ kwargs["name"] = ','.join(sorted(
getattr(team_users.get(user_id), 'name', user_id)
for user_id in kwargs["members"]
if user_id != myidentifier
- )
+ ))
super(SlackMPDMChannel, self).__init__(eventrouter, **kwargs)
self.type = "mpim"