aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/data
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2019-10-01 19:35:13 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2019-10-01 21:16:30 +0200
commit631aa6353c6df9b20d96f60970c53c27e6a92f84 (patch)
tree09c4fd19940b81d1ccb93de1bec655d1efaf528b /_pytest/data
parent9fec71d8096919481438c62a1a1baaf21c62456d (diff)
downloadwee-slack-631aa6353c6df9b20d96f60970c53c27e6a92f84.tar.gz
Add basic support for private channels converted from public
This is for channels which initially were public, but then are changed to private. They look the same as groups (channels initially created as private) in the official clients, but can only be used with the conversations api. They are listed in the channels list of rtm.start with is_private set to true. There are some remaining issues, which are documented in the readme. I'm not sure if we can support read sync and showing unread on load without changes from Slack to the API. Showing thread messages in the channel is possible to fix, but we would have to send requests to load the thread history for all the messages in the history that has replies. Fixes most of #644
Diffstat (limited to '_pytest/data')
-rw-r--r--_pytest/data/http/rtm.start.json44
1 files changed, 44 insertions, 0 deletions
diff --git a/_pytest/data/http/rtm.start.json b/_pytest/data/http/rtm.start.json
index 1d395b4..8caee41 100644
--- a/_pytest/data/http/rtm.start.json
+++ b/_pytest/data/http/rtm.start.json
@@ -311,6 +311,7 @@
"is_org_shared": false,
"has_pins": false,
"is_member": true,
+ "is_private": false,
"last_read": "1485976236.000019",
"latest": {
"type": "message",
@@ -398,6 +399,7 @@
"is_org_shared": false,
"has_pins": false,
"is_member": false,
+ "is_private": false,
"previous_names": []
},
{
@@ -412,6 +414,7 @@
"is_org_shared": false,
"has_pins": false,
"is_member": true,
+ "is_private": false,
"last_read": "1485969592.000002",
"latest": {
"user": "U4096CBHC",
@@ -451,9 +454,50 @@
"is_org_shared": false,
"has_pins": false,
"is_member": false,
+ "is_private": false,
"previous_names": [
"some-channel2"
]
+ },
+ {
+ "id": "CNZQKUU9M",
+ "name": "channel-created-as-public-then-converted-to-private",
+ "is_channel": true,
+ "is_group": false,
+ "is_im": false,
+ "created": 1569952842,
+ "is_archived": false,
+ "is_general": false,
+ "unlinked": 0,
+ "name_normalized": "channel-created-as-public-then-converted-to-private",
+ "is_shared": false,
+ "parent_conversation": null,
+ "creator": "U407ABLLW",
+ "is_ext_shared": false,
+ "is_org_shared": false,
+ "shared_team_ids": [
+ "T3YS5EAL9"
+ ],
+ "pending_shared": [],
+ "pending_connected_team_ids": [],
+ "is_pending_ext_shared": false,
+ "has_pins": false,
+ "is_member": true,
+ "is_private": true,
+ "is_mpim": false,
+ "last_read": "1569952877.000300",
+ "is_open": true,
+ "topic": {
+ "value": "",
+ "creator": "",
+ "last_set": 0
+ },
+ "purpose": {
+ "value": "",
+ "creator": "",
+ "last_set": 0
+ },
+ "priority": 0
}
],
"groups": [