Support Heisenbridge short names

This commit is contained in:
Toni Spets 2021-04-25 13:57:22 +03:00
parent 2b668080bd
commit b7e502526b

View file

@ -1072,7 +1072,8 @@ class RoomBuffer(object):
user.user_id.startswith("@facebook_") or
user.user_id.startswith("@telegram_") or
user.user_id.startswith("@_telegram_") or
user.user_id.startswith("@_xmpp_")):
user.user_id.startswith("@_xmpp_") or
user.user_id.startswith("@irc_")):
if user.display_name:
short_name = user.display_name[0:50]
elif user.user_id.startswith("@twilio_"):