aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--_pytest/test_everything.py2
-rw-r--r--wee_slack.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/_pytest/test_everything.py b/_pytest/test_everything.py
index 922c78d..76ab889 100644
--- a/_pytest/test_everything.py
+++ b/_pytest/test_everything.py
@@ -13,4 +13,4 @@ def test_everything(realish_eventrouter, team):
realish_eventrouter.receive_ws_callback(team.team_hash, None)
realish_eventrouter.handle_next()
- assert len(realish_eventrouter.queue) == 19
+ assert len(realish_eventrouter.queue) == 20
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)