Check if members is not empty in SlackMPDMChannel
If you use an xoxc token, the conversations.list endpoint returns an
empty list for members of mpdms that have is_group set to true, which
made this fail.
@@ -2896,7 +2896,7 @@ class SlackMPDMChannel(SlackChannel):
"""
def __init__(self, eventrouter, team_users, myidentifier, **kwargs):
- if "members" in kwargs:
+ if kwargs.get("members"):
kwargs["name"] = self.name_from_members(
team_users, kwargs["members"], myidentifier
)
