2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Simplify playing video tracking (and fix a crash).

This commit is contained in:
John Preston
2020-06-04 17:26:06 +04:00
parent e1d36cfd50
commit 2b9e4a8ddf
15 changed files with 53 additions and 85 deletions

View File

@@ -613,10 +613,7 @@ public:
UserId contactId,
not_null<HistoryItem*> item);
void registerPlayingVideoFile(not_null<ViewElement*> view);
void unregisterPlayingVideoFile(not_null<ViewElement*> view);
void checkPlayingVideoFiles();
void stopPlayingVideoFiles();
void checkPlayingAnimations();
HistoryItem *findWebPageItem(not_null<WebPageData*> page) const;
QString findContactPhone(not_null<UserData*> contact) const;
@@ -958,7 +955,6 @@ private:
std::unordered_map<
UserId,
base::flat_set<not_null<ViewElement*>>> _contactViews;
base::flat_map<not_null<ViewElement*>, int> _playingVideoFiles;
base::flat_set<not_null<WebPageData*>> _webpagesUpdated;
base::flat_set<not_null<GameData*>> _gamesUpdated;