From d933488b7272106a4720591673528ecdf4cef913 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Sun, 9 May 2021 12:47:30 +0200 Subject: Support MPIMs in channel list of rtm.start For some reason, some MPIMs are listed in the channel list of the response from rtm.start, with is_mpim set to true, instead of in the mpims list. These incorrectly appeared as private channels instead of MPIMs in wee-slack. These entries do not contain a members list, so we have to call conversations.members and set the name after receiving the response from that. --- _pytest/data/http/rtm.start.json | 4 ++++ 1 file changed, 4 insertions(+) (limited to '_pytest/data') diff --git a/_pytest/data/http/rtm.start.json b/_pytest/data/http/rtm.start.json index 972df4b..b827907 100644 --- a/_pytest/data/http/rtm.start.json +++ b/_pytest/data/http/rtm.start.json @@ -312,6 +312,7 @@ "has_pins": false, "is_member": true, "is_private": false, + "is_mpim": false, "last_read": "1485976236.000019", "latest": { "type": "message", @@ -400,6 +401,7 @@ "has_pins": false, "is_member": false, "is_private": false, + "is_mpim": false, "previous_names": [] }, { @@ -415,6 +417,7 @@ "has_pins": false, "is_member": true, "is_private": false, + "is_mpim": false, "last_read": "1485969592.000002", "latest": { "user": "U4096CBHC", @@ -455,6 +458,7 @@ "has_pins": false, "is_member": false, "is_private": false, + "is_mpim": false, "previous_names": [ "some-channel2" ] -- cgit