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

Don't store all received messages

Always fetch source message for replies from tlib
This commit is contained in:
Arseniy Lartsev
2020-05-30 10:07:55 +02:00
parent 033f1105d1
commit c6eba571f5
7 changed files with 86 additions and 86 deletions

View File

@@ -430,7 +430,7 @@ void showMessageText(TdAccountData &account, const td::td_api::chat &chat, const
std::string newText;
if (message.repliedMessageId != 0)
newText = quoteMessage(account.findMessage(message.repliedMessageId), account);
newText = quoteMessage(message.repliedMessage.get(), account);
if (!message.forwardedFrom.empty()) {
if (!newText.empty())
newText += "\n";