aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-05-22 23:55:48 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-05-23 00:02:10 +0200
commite3f8da8cd4e580303b2cf24d13549a9a18bfe797 (patch)
tree7f5d1e676552708f7b89ceb9524fe823b39088de /wee_slack.py
parent7444db1d5ff1d5de2a76dbdb98b23e3dffe618fc (diff)
downloadwee-slack-e3f8da8cd4e580303b2cf24d13549a9a18bfe797.tar.gz
Show typing indicators for dms
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py
index c828228..50bb966 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2086,9 +2086,14 @@ class SlackDMChannel(SlackChannel):
def formatted_name(self, style="default", typing=False, present=True):
if style == "sidebar":
- prepend = ""
- if config.show_buflist_presence:
- prepend = "+" if present else " "
+ if typing and config.channel_name_typing_indicator:
+ prepend = ">"
+ elif present and config.show_buflist_presence:
+ prepend = "+"
+ elif config.channel_name_typing_indicator or config.show_buflist_presence:
+ prepend = " "
+ else:
+ prepend = ""
name = prepend + self.slack_name
if config.colorize_private_chats: