mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fixed reading issue in channels after getChannelDifference().
In App::history() readInboxBefore property was reset each time.
This commit is contained in:
@@ -26,6 +26,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
|
||||
#include "styles/style_settings.h"
|
||||
#include "ui/scrollarea.h"
|
||||
#include "mainwindow.h"
|
||||
#include "mainwidget.h"
|
||||
#include "localstorage.h"
|
||||
#include "boxes/confirmbox.h"
|
||||
#include "application.h"
|
||||
@@ -80,6 +81,11 @@ void fillCodes() {
|
||||
});
|
||||
Ui::showLayer(box.release());
|
||||
});
|
||||
Codes.insert(qsl("getdifference"), []() {
|
||||
if (auto main = App::main()) {
|
||||
main->getDifference();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void codesFeedString(const QString &text) {
|
||||
|
Reference in New Issue
Block a user