aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_conversation.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-08-26 21:34:43 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commit62de441e0cb1c05797d1279f1c642d6efbba98cb (patch)
treeb535d342e4af563daf9ee8e62781bb91f2faee1a /slack/slack_conversation.py
parentbdc1ce69171944292de06791f3ed647ff3f5bbcd (diff)
downloadwee-slack-62de441e0cb1c05797d1279f1c642d6efbba98cb.tar.gz
Define __bool__ in WeeChatOption
Diffstat (limited to 'slack/slack_conversation.py')
-rw-r--r--slack/slack_conversation.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/slack/slack_conversation.py b/slack/slack_conversation.py
index 7d44fba..1d89eae 100644
--- a/slack/slack_conversation.py
+++ b/slack/slack_conversation.py
@@ -416,11 +416,7 @@ class SlackConversation:
async def nicklist_add_user(self, user_id: str):
user = await self.workspace.users[user_id]
# TODO: weechat.color.nicklist_away
- color = (
- user.nick_color()
- if shared.config.look.color_nicks_in_nicklist.value
- else ""
- )
+ color = user.nick_color() if shared.config.look.color_nicks_in_nicklist else ""
weechat.nicklist_add_nick(
self.buffer_pointer, "", user.nick(), color, "", "", 1
)
@@ -492,7 +488,7 @@ class SlackConversation:
await self.rerender_message(message)
async def typing_add_user(self, user_id: str, thread_ts: Optional[str]):
- if not shared.config.look.typing_status_nicks.value:
+ if not shared.config.look.typing_status_nicks:
return
if not thread_ts: