aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-05-22 21:37:49 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-05-22 23:52:19 +0200
commite76d20c5125bd01af81555b9cbdd16e9c3d5d9b5 (patch)
tree98f7671809ba218b264dbbf4f9fa12459013055a
parent72be2f5af3c1e0ad42b34473c188e2cdf3438754 (diff)
downloadwee-slack-e76d20c5125bd01af81555b9cbdd16e9c3d5d9b5.tar.gz
Use name instead of slack_name for display
A few places used slack_name when displaying the name to the user. name should be used instead because tincludes the correct prefix. The first place was just for dms though which doesn't have a prefix, so that won't show any difference.
-rw-r--r--wee_slack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 3d76843..d29627d 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -968,7 +968,7 @@ def typing_bar_item_cb(data, item, current_window, current_buffer, extra_info):
for channel in team.channels.values():
if channel.type == "im":
if channel.is_someone_typing():
- typers.append("D/" + channel.slack_name)
+ typers.append("D/" + channel.name)
pass
typing = ", ".join(typers)
@@ -3184,7 +3184,7 @@ def process_channel_created(message_json, eventrouter, team, channel, metadata):
item['is_member'] = False
channel = SlackChannel(eventrouter, team=team, **item)
team.channels[item["id"]] = channel
- team.buffer_prnt('Channel created: {}'.format(channel.slack_name))
+ team.buffer_prnt('Channel created: {}'.format(channel.name))
def process_channel_rename(message_json, eventrouter, team, channel, metadata):