mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 08:05:12 +00:00
Move requestDialogEntry to Histories.
This commit is contained in:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user