aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2022-09-17 13:02:12 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2022-09-17 13:02:12 +0200
commit0e38b1dd6ac54a29db7ac32decf5e706f053cf25 (patch)
treed7528e68e93ca6decb842e517927bbc3e2239655 /wee_slack.py
parent2db1df7ad9cde9471385912284bd8b7d3eb7758c (diff)
downloadwee-slack-0e38b1dd6ac54a29db7ac32decf5e706f053cf25.tar.gz
Fix tests and formatting after last commit
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py
index f58cfe2..0dc8c72 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2267,7 +2267,7 @@ class SlackChannel(SlackChannelCommon):
is_open = self.is_open if hasattr(self, "is_open") else self.is_member
if is_open or self.unread_count_display:
self.create_buffer()
- elif self.type == 'im':
+ elif self.type == "im":
# If it is an IM, we still might want to open it if there are unread messages.
info_method = self.team.slack_api_translator[self.type].get("info")
if info_method:
@@ -3831,8 +3831,8 @@ def handle_conversationsmembers(members_json, eventrouter, team, channel, metada
def handle_conversationsinfo(message_json, eventrouter, team, channel, metadata):
- if message_json['channel']['is_im']:
- unread = message_json['channel']['unread_count_display']
+ if message_json["channel"]["is_im"]:
+ unread = message_json["channel"]["unread_count_display"]
if unread:
channel.check_should_open(True)
channel.set_unread_count_display(unread)