aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-05-21 02:07:13 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-05-22 23:52:19 +0200
commit72be2f5af3c1e0ad42b34473c188e2cdf3438754 (patch)
tree2cdc3dcc087c64baae3ba5465fc937c386f3e3c6 /wee_slack.py
parentf033db20e83a868e7ab41f8ac91b371ff6e9c5e6 (diff)
downloadwee-slack-72be2f5af3c1e0ad42b34473c188e2cdf3438754.tar.gz
Only set typing indicator in short_name
We shouldn't change the full name for typing indicators because autosort will reorder the buffer, and it may break scripts using the full name. We didn't show typing indicator until the previous commit anyways, because the full name was never updated until that.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 9acc9a9..3d76843 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1715,7 +1715,7 @@ class SlackChannel(SlackChannelCommon):
w.buffer_set(self.channel_buffer, "hotlist", "1")
def formatted_name(self, style="default", typing=False, **kwargs):
- if typing and config.channel_name_typing_indicator:
+ if style == "sidebar" and typing and config.channel_name_typing_indicator:
prepend = ">"
elif self.type == "group" or self.type == "private":
prepend = config.group_name_prefix