2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Add a RequestDependentMessageData method.

This commit is contained in:
John Preston
2021-11-08 12:32:25 +04:00
parent 213d7875ba
commit 6eaeb306d6
3 changed files with 29 additions and 25 deletions

View File

@@ -1153,13 +1153,10 @@ void HistoryService::createFromMtp(const MTPDmessageService &message) {
: 0;
dependent->msgId = data.vreply_to_msg_id().v;
if (!updateDependent()) {
history()->session().api().requestMessageData(
(peerIsChannel(dependent->peerId)
? history()->owner().channel(
peerToChannel(dependent->peerId)).get()
: history()->peer->asChannel()),
dependent->msgId,
HistoryDependentItemCallback(this));
RequestDependentMessageData(
this,
dependent->peerId,
dependent->msgId);
}
}
});