2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Move message ownership to History.

This commit is contained in:
John Preston
2020-02-20 12:45:25 +04:00
parent 6357529901
commit c8d2ac9583
13 changed files with 138 additions and 130 deletions

View File

@@ -165,8 +165,7 @@ AdminLog::OwnedItem GenerateForwardedItem(
//MTPMessageReactions(),
MTPVector<MTPRestrictionReason>()
).match([&](const MTPDmessage &data) {
return history->owner().makeMessage(
history,
return history->makeMessage(
data,
MTPDmessage_ClientFlag::f_fake_history_item);
}, [](auto &&) -> not_null<HistoryMessage*> {