diff options
-rw-r--r-- | slack/slack_conversation.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/slack/slack_conversation.py b/slack/slack_conversation.py index e92ddcf..21b953b 100644 --- a/slack/slack_conversation.py +++ b/slack/slack_conversation.py @@ -59,14 +59,14 @@ class SlackConversation: async def init(self): with self.loading(): info = await self.api.fetch_conversations_info(self) - if info["ok"] != True: + if info["ok"] is False: # TODO: Handle error return info_channel = info["channel"] - if info_channel["is_im"] == True: + if info_channel["is_im"] is True: self.name = "IM" # TODO - elif info_channel["is_mpim"] == True: + elif info_channel["is_mpim"] is True: self.name = "MPIM" # TODO else: self.name = info_channel["name"] |