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