diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2021-02-20 12:31:58 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2021-02-20 13:24:49 +0100 |
commit | e626714a1acdc13fd711869b879e2db7aa75ace8 (patch) | |
tree | 1fc4298249a72a3ad32ebd0d61a897eddc58ec3a /README.md | |
parent | 8bd734c8e9a6b133a65548672f8a11ee3b3ce677 (diff) | |
download | wee-slack-e626714a1acdc13fd711869b879e2db7aa75ace8.tar.gz |
Replace deprecated APIs with conversations API
Now that conversations.mark works for all tokens, just using the
conversations API the same way as the old APIs works fine as far as I
can see.
Loosing unread_count_display by replacing mpim.open with
conversations.open and channels.info with conversations.info means that
mpims and channels will not be marked as unread when wee-slack loads if
background_load_all_history has been set to false anymore. As far as I
can see, the only way to check if they have unread messages is by
loading the history, so there is no way around this.
Fixes #792
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -118,10 +118,12 @@ several drawbacks, so an alternative way is to pull a session token out of the web client. Drawbacks of OAuth tokens: -- If the team is restricting app installations, wee-slack has to be approved by an admin. +- If the team is restricting app installations, wee-slack has to be approved by + an admin. - For free teams, wee-slack will use one of the ten app slots. - The subscribe and unsubscribe commands won't work. -- Threads, shared channels and channels that has been converted from public to private can only be marked as read locally, it won't sync to Slack. This means they will be unread again after reloading the script. +- Threads can only be marked as read locally, it won't sync to Slack. This + means they will be unread again after reloading the script. Drawbacks of session tokens: - These tokens can't be revoked, so be careful not to loose them. @@ -436,14 +438,14 @@ Not all issues are listed here (see some noteworthy: - If you set `background_load_all_history` to `false`: - - Shared channels and channels that has been converted from public to private - will not be shown as unread when wee-slack loads, even if there are unread - messages. Messages which arrive after wee-slack has loaded however will - mark the channel as unread. + - Channels will not be shown as unread when wee-slack loads, even if there + are unread messages. Messages which arrive after wee-slack has loaded + however will mark the channel as unread. - If messages arrive while the connection to Slack is lost (e.g. during suspend), they will not appear in the hotlist. - If you use an OAuth token or a legacy token instead of a session token: - - Threads, shared channels and channels that has been converted from public to private can only be marked as read locally, it won't sync to Slack. This means they will be unread again after reloading the script. + - Threads can only be marked as read locally, it won't sync to Slack. This + means they will be unread again after reloading the script. Debugging --------- |