2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Clear hidden animated stickers.

This commit is contained in:
John Preston
2019-05-14 12:50:44 +03:00
parent 236513943c
commit 7ee16ba45c
23 changed files with 233 additions and 130 deletions

View File

@@ -682,36 +682,6 @@ HistoryView::Context ForwardsPrivacyController::elementContext() {
return HistoryView::Context::ContactPreview;
}
auto ForwardsPrivacyController::elementCreate(
not_null<HistoryMessage*> message)
-> std::unique_ptr<HistoryView::Element> {
return std::make_unique<HistoryView::Message>(delegate(), message);
}
auto ForwardsPrivacyController::elementCreate(
not_null<HistoryService*> message)
-> std::unique_ptr<HistoryView::Element> {
Unexpected("Service message in ForwardsPrivacyController.");
}
bool ForwardsPrivacyController::elementUnderCursor(
not_null<const Element*> view) {
return false;
}
void ForwardsPrivacyController::elementAnimationAutoplayAsync(
not_null<const Element*> element) {
}
crl::time ForwardsPrivacyController::elementHighlightTime(
not_null<const Element*> element) {
return crl::time(0);
}
bool ForwardsPrivacyController::elementInSelectionMode() {
return false;
}
ApiWrap::Privacy::Key ProfilePhotoPrivacyController::key() {
return Key::ProfilePhoto;
}