diff --git a/matrix/buffer.py b/matrix/buffer.py index 232265b..cce69dc 100644 --- a/matrix/buffer.py +++ b/matrix/buffer.py @@ -1012,11 +1012,14 @@ class RoomBuffer(object): # TODO handle this special case for discord bridge users and # freenode bridge users better if (user.user_id.startswith("@_discord_") or - user.user_id.startswith("@_slack_")): + user.user_id.startswith("@_slack_") or + user.user_id.startswith("@whatsapp_")): if user.display_name: short_name = user.display_name[0:50] elif user.user_id.startswith("@freenode_"): short_name = shorten_sender(user.user_id[9:]) + elif user.user_id.startswith("@_ircnet_"): + short_name = shorten_sender(user.user_id[8:]) # TODO make this configurable if not short_name or short_name in self.displayed_nicks.values():