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

Use plain HistoryItem in channel admin events log.

Instead of using a complex AdminLog::Item use just HistoryItem*.
This commit is contained in:
John Preston
2017-06-22 02:54:38 +03:00
parent e39b95175b
commit 5c87b42135
14 changed files with 313 additions and 319 deletions

View File

@@ -25,6 +25,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
#include "mainwindow.h"
#include "mainwidget.h"
#include "messenger.h"
#include "auth_session.h"
#include "boxes/confirm_box.h"
#include "layerwidget.h"
#include "lang/lang_keys.h"
@@ -368,9 +369,8 @@ void historyMuteUpdated(History *history) {
}
void handlePendingHistoryUpdate() {
if (auto main = App::main()) {
main->notify_handlePendingHistoryUpdate();
}
AuthSession::Current().data().pendingHistoryResize().notify(true);
for (auto item : base::take(Global::RefPendingRepaintItems())) {
Ui::repaintHistoryItem(item);