diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2019-06-12 23:51:29 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2019-06-12 23:51:29 +0200 |
commit | 41dcc9e6a866fd18f26c5ee3f272349569523572 (patch) | |
tree | 13bf4e8bf41528b7d6c3417a84b343fbb961bbb2 /wee_slack.py | |
parent | 19d33073c1f493c7f61b6a38e4f0868cfec63dd6 (diff) | |
download | wee-slack-41dcc9e6a866fd18f26c5ee3f272349569523572.tar.gz |
Sort nicks in mpdm name alphabetically
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 4 |
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" |