2
0
mirror of https://github.com/ars3niy/tdlib-purple synced 2025-08-31 05:55:08 +00:00

Replaced more purple_account_get_alias with get_name_for_display

This commit is contained in:
Arseniy Lartsev
2020-06-11 11:29:05 +02:00
parent d7d6583e89
commit 9f7418dff2

View File

@@ -397,7 +397,7 @@ void showMessageTextIm(TdAccountData &account, const char *purpleUserName, const
// echoed messages from this client. Therefore, this (code snippet from facebook plugin).
conv = getImConversation(account.purpleAccount, purpleUserName);
purple_conv_im_write(purple_conversation_get_im_data(conv),
purple_account_get_alias(account.purpleAccount),
purple_account_get_name_for_display(account.purpleAccount),
text, flags, timestamp);
} else {
serv_got_im(purple_account_get_connection(account.purpleAccount), purpleUserName, text,
@@ -424,8 +424,8 @@ static void showMessageTextChat(TdAccountData &account, const td::td_api::chat &
if (text) {
if (flags & PURPLE_MESSAGE_SEND) {
if (conv)
purple_conv_chat_write(conv, purple_account_get_alias(account.purpleAccount), text,
flags, message.timestamp);
purple_conv_chat_write(conv, purple_account_get_name_for_display(account.purpleAccount),
text, flags, message.timestamp);
} else {
if (purpleId != 0)
serv_got_chat_in(purple_account_get_connection(account.purpleAccount), purpleId,