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

Use new animations engine for typings.

This commit is contained in:
John Preston
2019-04-01 18:53:18 +04:00
parent 3971f27c66
commit cd3c1c6dc0
15 changed files with 301 additions and 233 deletions

View File

@@ -14,6 +14,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_notify_settings.h"
#include "history/history_location_manager.h"
#include "base/timer.h"
#include "ui/effects/animations.h"
class Image;
class HistoryItem;
@@ -670,7 +671,7 @@ private:
const MTPMessageMedia &media,
TimeId date);
void step_typings(crl::time ms, bool timer);
bool sendActionsAnimationCallback(crl::time now);
void setWallpapers(const QVector<MTPWallPaper> &data, int32 hash);
@@ -733,7 +734,7 @@ private:
// When typing in this history started.
base::flat_map<not_null<History*>, crl::time> _sendActions;
BasicAnimation _a_sendActions;
Ui::Animations::Basic _sendActionsAnimation;
std::unordered_map<
PhotoId,