Removed MainWidget::highlightStartTime.

This commit is contained in:
23rd 2021-09-29 02:32:23 +03:00
parent 21aa1f49d7
commit e3ef7d6631
3 changed files with 1 additions and 9 deletions

View file

@ -49,7 +49,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/platform/base_platform_info.h"
#include "base/unixtime.h"
#include "mainwindow.h"
#include "mainwidget.h"
#include "layout/layout_selection.h"
#include "main/main_session.h"
#include "main/main_session_settings.h"
@ -2655,7 +2654,7 @@ void HistoryInner::elementStartStickerLoop(
crl::time HistoryInner::elementHighlightTime(
not_null<const HistoryItem*> item) {
const auto fullAnimMs = _controller->content()->highlightStartTime(item);
const auto fullAnimMs = _widget->highlightStartTime(item);
if (fullAnimMs > 0) {
const auto now = crl::now();
if (fullAnimMs < now) {

View file

@ -762,10 +762,6 @@ bool MainWidget::selectingPeer() const {
return _hider ? true : false;
}
crl::time MainWidget::highlightStartTime(not_null<const HistoryItem*> item) const {
return _history->highlightStartTime(item);
}
void MainWidget::sendBotCommand(Bot::SendCommandRequest request) {
const auto type = _mainSection
? _mainSection->sendBotCommand(request)

View file

@ -176,9 +176,6 @@ public:
void deletePhotoLayer(PhotoData *photo);
// While HistoryInner is not HistoryView::ListWidget.
crl::time highlightStartTime(not_null<const HistoryItem*> item) const;
void sendBotCommand(Bot::SendCommandRequest request);
void hideSingleUseKeyboard(PeerData *peer, MsgId replyTo);
bool insertBotCommand(const QString &cmd);