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

Move requestDialogEntry to Histories.

This commit is contained in:
John Preston
2020-02-21 11:58:50 +04:00
parent 9bdcd08233
commit db322cc19a
16 changed files with 198 additions and 183 deletions

View File

@@ -1530,7 +1530,7 @@ void Session::applyDialog(
return;
}
const auto history = session().data().history(peerId);
const auto history = this->history(peerId);
history->applyDialog(requestFolder, data);
setPinnedFromDialog(history, data.is_pinned());
@@ -3597,7 +3597,7 @@ void Session::serviceNotification(
}
const auto history = this->history(PeerData::kServiceNotificationsId);
if (!history->folderKnown()) {
_session->api().requestDialogEntry(history, [=] {
histories().requestDialogEntry(history, [=] {
insertCheckedServiceNotification(message, media, date);
});
} else {