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:
@@ -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
|
||||
|
Reference in New Issue
Block a user