From 69a19eae35eac1e9960b7a33c589cf22cd7d4aea Mon Sep 17 00:00:00 2001 From: Eric Wang Date: Fri, 27 Oct 2017 00:02:57 -0700 Subject: Add support for shared channels Since shared channels only work with the new conversations API, a new class of SlackChannel and API type were added to support them. Also `rtm.start` doesn't include external users so their information needs to be fetched individually when getting the channel history. To distinguish external users from team members their nicks get appended with an asterisk, which can be changed with a new setting. They also appear in a new "External" group in the nicklist since their presences can't be fetched with `users.getPresence`. Unfortunately `conversations.history` doesn't include thread messages so threads won't show up in shared channels. --- _pytest/data/http/rtm.start.json | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '_pytest/data/http/rtm.start.json') diff --git a/_pytest/data/http/rtm.start.json b/_pytest/data/http/rtm.start.json index d9cc464..34d875a 100644 --- a/_pytest/data/http/rtm.start.json +++ b/_pytest/data/http/rtm.start.json @@ -307,6 +307,8 @@ "creator": "U407ABLLW", "is_archived": false, "is_general": true, + "is_shared": false, + "is_org_shared": false, "has_pins": false, "is_member": true, "last_read": "1485976236.000019", @@ -392,6 +394,8 @@ "creator": "U407ABLLW", "is_archived": false, "is_general": false, + "is_shared": false, + "is_org_shared": false, "has_pins": false, "is_member": false, "previous_names": [] @@ -404,6 +408,8 @@ "creator": "U407ABLLW", "is_archived": false, "is_general": false, + "is_shared": false, + "is_org_shared": false, "has_pins": false, "is_member": true, "last_read": "1485969592.000002", @@ -441,6 +447,8 @@ "creator": "U407ABLLW", "is_archived": false, "is_general": false, + "is_shared": false, + "is_org_shared": false, "has_pins": false, "is_member": false, "previous_names": [ -- cgit