2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix build on Xcode.

This commit is contained in:
John Preston
2019-04-23 19:23:13 +04:00
parent 5ab1cd405a
commit 6dd8f32f66
4 changed files with 13 additions and 16 deletions

View File

@@ -921,7 +921,7 @@ void ApiWrap::requestMoreBlockedByDateDialogs() {
_dialogsLoadTill = _dialogsLoadState->offsetDate
? (_dialogsLoadState->offsetDate - max)
: (unixtime() - max);
requestDialogs(FolderId(0));
requestDialogs();
}
rpl::producer<bool> ApiWrap::dialogsLoadMayBlockByDate() const {
@@ -1038,10 +1038,7 @@ void ApiWrap::applyPeerDialogs(const MTPmessages_PeerDialogs &dialogs) {
for (const auto &dialog : data.vdialogs.v) {
dialog.match([&](const MTPDdialog &data) {
if (const auto peerId = peerFromMTP(data.vpeer)) {
const auto requestFolderId = FolderId(0);
_session->data().history(peerId)->applyDialog(
requestFolderId,
data);
_session->data().history(peerId)->applyDialog(nullptr, data);
}
}, [&](const MTPDdialogFolder &data) {
const auto folder = _session->data().processFolder(data.vfolder);