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

Sort of merged TgMessageInfo and IncomingMessage

This commit is contained in:
Arseniy Lartsev
2020-10-11 19:41:18 +02:00
parent 2f7915e5d1
commit 05be359e9a
7 changed files with 40 additions and 27 deletions

View File

@@ -414,7 +414,7 @@ std::string makeBasicDisplayName(const td::td_api::user &user)
}
std::string getIncomingGroupchatSenderPurpleName(const td::td_api::chat &chat, const td::td_api::message &message,
TdAccountData &account)
const TdAccountData &account)
{
if (!message.is_outgoing_ && (getBasicGroupId(chat).valid() || getSupergroupId(chat).valid())) {
UserId senderId = getSenderUserId(message);
@@ -443,7 +443,7 @@ std::string getIncomingGroupchatSenderPurpleName(const td::td_api::chat &chat, c
}
std::string getForwardSource(const td::td_api::messageForwardInfo &forwardInfo,
TdAccountData &account)
const TdAccountData &account)
{
if (!forwardInfo.origin_)
return "";