Some Telegram bridges use "_telegram" prefix instead of plain "telegram"

This commit is contained in:
Joel Lehtonen 2019-11-11 14:40:18 +02:00
parent 69ad2a9c03
commit 1fe0215e44

View file

@ -1057,6 +1057,7 @@ class RoomBuffer(object):
user.user_id.startswith("@whatsapp_") or user.user_id.startswith("@whatsapp_") or
user.user_id.startswith("@facebook_") or user.user_id.startswith("@facebook_") or
user.user_id.startswith("@telegram_") or user.user_id.startswith("@telegram_") or
user.user_id.startswith("@_telegram_") or
user.user_id.startswith("@_xmpp_")): user.user_id.startswith("@_xmpp_")):
if user.display_name: if user.display_name:
short_name = user.display_name[0:50] short_name = user.display_name[0:50]