2
0
mirror of https://github.com/ars3niy/tdlib-purple synced 2025-09-02 06:55:09 +00:00

Do not rely on account having alias

This fixes bitlbee crash when viewing message which is a file sent from
ourselves from another client
This commit is contained in:
Arseniy Lartsev
2020-06-10 17:32:01 +02:00
parent db9f26cf8c
commit bf49eb9916

View File

@@ -1183,7 +1183,7 @@ std::string getSenderDisplayName(const td::td_api::chat &chat, const TgMessageIn
PurpleAccount *account)
{
if (message.outgoing)
return purple_account_get_alias(account);
return purple_account_get_name_for_display(account);
else if (isPrivateChat(chat))
return chat.title_;
else