2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +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

@@ -24,6 +24,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_user.h"
#include "data/data_scheduled_messages.h"
#include "data/data_file_origin.h"
#include "data/data_histories.h"
#include "api/api_text_entities.h"
#include "ui/special_buttons.h"
#include "ui/widgets/buttons.h"
@@ -4027,7 +4028,7 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
// d.vunread_count()->v,
// d.vunread_muted_count()->v);
// } else {
// session().api().requestDialogEntry(feed);
// session().data().histories().requestDialogEntry(feed);
// }
// }
//} break;
@@ -4403,7 +4404,7 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
session().api().requestPinnedDialogs(folder);
}
if (!loaded) {
session().api().requestDialogEntry(folder);
session().data().histories().requestDialogEntry(folder);
}
} break;
@@ -4461,12 +4462,12 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
//if (const auto feed = channel->feed()) { // #feed
// feed->requestChatListMessage();
// if (!feed->unreadCountKnown()) {
// feed->session().api().requestDialogEntry(feed);
// feed->owner().histories().requestDialogEntry(feed);
// }
//} else {
history->requestChatListMessage();
if (!history->unreadCountKnown()) {
history->session().api().requestDialogEntry(history);
history->owner().histories().requestDialogEntry(history);
}
//}
if (!channel->amCreator()) {