aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest
diff options
context:
space:
mode:
authorEric Wang <gnawrice@gmail.com>2017-10-27 00:02:57 -0700
committerTrygve Aaberge <trygveaa@gmail.com>2018-06-07 14:45:55 +0200
commit69a19eae35eac1e9960b7a33c589cf22cd7d4aea (patch)
treefcb0113083435a1fe3ef03749dfa854c7a28a944 /_pytest
parent6df61f330460316db2a72e770214b1ba82c3cb56 (diff)
downloadwee-slack-69a19eae35eac1e9960b7a33c589cf22cd7d4aea.tar.gz
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.
Diffstat (limited to '_pytest')
-rw-r--r--_pytest/data/http/rtm.start.json8
1 files changed, 8 insertions, 0 deletions
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": [