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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user