2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +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

@@ -30,6 +30,7 @@ enum class NewMessageType;
namespace HistoryView {
struct Group;
class Element;
class ElementDelegate;
} // namespace HistoryView
class AuthSession;
@@ -198,6 +199,15 @@ public:
[[nodiscard]] rpl::producer<not_null<History*>> historyChanged() const;
void sendHistoryChangeNotifications();
void registerHeavyViewPart(not_null<ViewElement*> view);
void unregisterHeavyViewPart(not_null<ViewElement*> view);
void unloadHeavyViewParts(
not_null<HistoryView::ElementDelegate*> delegate);
void unloadHeavyViewParts(
not_null<HistoryView::ElementDelegate*> delegate,
int from,
int till);
using MegagroupParticipant = std::tuple<
not_null<ChannelData*>,
not_null<UserData*>>;
@@ -909,6 +919,8 @@ private:
not_null<const HistoryItem*>,
std::vector<not_null<ViewElement*>>> _views;
base::flat_set<not_null<ViewElement*>> _heavyViewParts;
PeerData *_proxyPromoted = nullptr;
NotifySettings _defaultUserNotifySettings;