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

Track stories deletion and refresh views.

This commit is contained in:
John Preston
2023-06-30 11:48:18 +04:00
parent 1d5b57c39c
commit 074a4e3c92
6 changed files with 64 additions and 6 deletions

View File

@@ -637,6 +637,9 @@ public:
not_null<HistoryItem*> item);
void registerCallItem(not_null<HistoryItem*> item);
void unregisterCallItem(not_null<HistoryItem*> item);
void registerStoryItem(FullStoryId id, not_null<HistoryItem*> item);
void unregisterStoryItem(FullStoryId id, not_null<HistoryItem*> item);
void refreshStoryItemViews(FullStoryId id);
void documentMessageRemoved(not_null<DocumentData*> document);
@@ -949,6 +952,9 @@ private:
UserId,
base::flat_set<not_null<ViewElement*>>> _contactViews;
std::unordered_set<not_null<HistoryItem*>> _callItems;
std::unordered_map<
FullStoryId,
base::flat_set<not_null<HistoryItem*>>> _storyItems;
base::flat_set<not_null<WebPageData*>> _webpagesUpdated;
base::flat_set<not_null<GameData*>> _gamesUpdated;