aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2022-10-04 00:35:24 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2022-10-04 00:46:23 +0200
commit0067ede3c2bcc654859a29b27961115f260266e7 (patch)
tree903f488153c2ad486612789294d9be5723084ef1 /wee_slack.py
parent7a9aa20b96578bbded27cbda72156774a600945a (diff)
downloadwee-slack-0067ede3c2bcc654859a29b27961115f260266e7.tar.gz
Fix old type MPIMs not being marked as unread on start
Old type MPIMs (has `is_group: true`) has `is_open`, but not `unread_count_display` in the response from `conversations.list`, so they were not marked as unread on start if background_load_all_history was set to false because we have to request the history, but `check_should_open` created the buffer, so it wasn't requested here.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index a38943e..bc075d7 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -3807,7 +3807,7 @@ def handle_conversationsinfo(channel_json, eventrouter, team, channel, metadata)
channel.set_members(channel_info["members"])
# MPIMs don't have unread_count_display so we have to request the history to check if there are unread messages
- if channel.type == "mpim" and not channel.channel_buffer:
+ if channel.type == "mpim" and not channel.got_history:
s = SlackRequest(
team,
"conversations.history",