mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Use Main::Session in entities parsing.
This commit is contained in:
@@ -1703,7 +1703,9 @@ bool Session::checkEntitiesAndViewsUpdate(const MTPDmessage &data) {
|
||||
if (const auto existing = message(peerToChannel(peer), data.vid().v)) {
|
||||
existing->updateSentContent({
|
||||
qs(data.vmessage()),
|
||||
Api::EntitiesFromMTP(data.ventities().value_or_empty())
|
||||
Api::EntitiesFromMTP(
|
||||
&session(),
|
||||
data.ventities().value_or_empty())
|
||||
}, data.vmedia());
|
||||
existing->updateReplyMarkup(data.vreply_markup());
|
||||
existing->updateForwardedInfo(data.vfwd_from());
|
||||
@@ -3725,7 +3727,7 @@ void Session::insertCheckedServiceNotification(
|
||||
MTP_string(sending.text),
|
||||
media,
|
||||
MTPReplyMarkup(),
|
||||
Api::EntitiesToMTP(sending.entities),
|
||||
Api::EntitiesToMTP(&session(), sending.entities),
|
||||
MTPint(),
|
||||
MTPint(),
|
||||
MTPstring(),
|
||||
|
Reference in New Issue
Block a user