mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Removed MainWidget::highlightStartTime.
This commit is contained in:
parent
21aa1f49d7
commit
e3ef7d6631
3 changed files with 1 additions and 9 deletions
|
@ -49,7 +49,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "base/platform/base_platform_info.h"
|
#include "base/platform/base_platform_info.h"
|
||||||
#include "base/unixtime.h"
|
#include "base/unixtime.h"
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
#include "mainwidget.h"
|
|
||||||
#include "layout/layout_selection.h"
|
#include "layout/layout_selection.h"
|
||||||
#include "main/main_session.h"
|
#include "main/main_session.h"
|
||||||
#include "main/main_session_settings.h"
|
#include "main/main_session_settings.h"
|
||||||
|
@ -2655,7 +2654,7 @@ void HistoryInner::elementStartStickerLoop(
|
||||||
|
|
||||||
crl::time HistoryInner::elementHighlightTime(
|
crl::time HistoryInner::elementHighlightTime(
|
||||||
not_null<const HistoryItem*> item) {
|
not_null<const HistoryItem*> item) {
|
||||||
const auto fullAnimMs = _controller->content()->highlightStartTime(item);
|
const auto fullAnimMs = _widget->highlightStartTime(item);
|
||||||
if (fullAnimMs > 0) {
|
if (fullAnimMs > 0) {
|
||||||
const auto now = crl::now();
|
const auto now = crl::now();
|
||||||
if (fullAnimMs < now) {
|
if (fullAnimMs < now) {
|
||||||
|
|
|
@ -762,10 +762,6 @@ bool MainWidget::selectingPeer() const {
|
||||||
return _hider ? true : false;
|
return _hider ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
crl::time MainWidget::highlightStartTime(not_null<const HistoryItem*> item) const {
|
|
||||||
return _history->highlightStartTime(item);
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWidget::sendBotCommand(Bot::SendCommandRequest request) {
|
void MainWidget::sendBotCommand(Bot::SendCommandRequest request) {
|
||||||
const auto type = _mainSection
|
const auto type = _mainSection
|
||||||
? _mainSection->sendBotCommand(request)
|
? _mainSection->sendBotCommand(request)
|
||||||
|
|
|
@ -176,9 +176,6 @@ public:
|
||||||
|
|
||||||
void deletePhotoLayer(PhotoData *photo);
|
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 sendBotCommand(Bot::SendCommandRequest request);
|
||||||
void hideSingleUseKeyboard(PeerData *peer, MsgId replyTo);
|
void hideSingleUseKeyboard(PeerData *peer, MsgId replyTo);
|
||||||
bool insertBotCommand(const QString &cmd);
|
bool insertBotCommand(const QString &cmd);
|
||||||
|
|
Loading…
Add table
Reference in a new issue