aboutsummaryrefslogtreecommitdiffstats
path: root/slack
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-09-16 23:30:53 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commitd31e4aaf6e8fe6ba7ebaf472d978e48888cab85f (patch)
tree057a3629fe196e428c9c7ad92042ed4bb51693c9 /slack
parent150fb51720fd0e8a8511c6c3468b8e182dedea3e (diff)
downloadwee-slack-d31e4aaf6e8fe6ba7ebaf472d978e48888cab85f.tar.gz
Show number of reactions also when display_reaction_nicks is on
Diffstat (limited to 'slack')
-rw-r--r--slack/slack_message.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/slack/slack_message.py b/slack/slack_message.py
index 032df91..f8bb697 100644
--- a/slack/slack_message.py
+++ b/slack/slack_message.py
@@ -514,9 +514,11 @@ class SlackMessage:
nicks = ",".join(user.nick() for user in users)
users_str = f"({nicks})"
else:
- users_str = len(reaction["users"])
+ users_str = ""
- reaction_string = f"{self._get_emoji(reaction['name'])}{users_str}"
+ reaction_string = (
+ f"{self._get_emoji(reaction['name'])}{len(reaction['users'])}{users_str}"
+ )
if self.workspace.my_user.id in reaction["users"]:
return with_color(