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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user