From be0aae605f1a15625ae7b1b459f1d152cacaf01d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 30 Nov 2018 12:50:39 +0100 Subject: [PATCH] buffer: Use the display name for slack users as well. --- matrix/buffer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matrix/buffer.py b/matrix/buffer.py index 2d0f849..5ba2f03 100644 --- a/matrix/buffer.py +++ b/matrix/buffer.py @@ -942,7 +942,8 @@ class RoomBuffer(object): # TODO handle this special case for discord bridge users and # freenode bridge users better - if user.user_id.startswith("@_discord_"): + if (user.user_id.startswith("@_discord_") or + user.user_id.startswith("@_slack_")): if user.display_name: short_name = user.display_name elif user.user_id.startswith("@freenode_"):