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

Added behavior to hide spoilers when switching sections.

This commit is contained in:
23rd
2021-12-29 18:26:25 +03:00
committed by John Preston
parent a381439e3e
commit 3aacae2cb2
11 changed files with 54 additions and 0 deletions

View File

@@ -282,6 +282,10 @@ public:
int from,
int till);
void registerShownSpoiler(FullMsgId id);
void unregisterShownSpoiler(FullMsgId id);
void hideShownSpoilers();
using MegagroupParticipant = std::tuple<
not_null<ChannelData*>,
not_null<UserData*>>;
@@ -943,6 +947,8 @@ private:
rpl::event_stream<InviteToCall> _invitesToCalls;
base::flat_map<uint64, base::flat_set<not_null<UserData*>>> _invitedToCallUsers;
base::flat_set<not_null<HistoryItem*>> _shownSpoilers;
History *_topPromoted = nullptr;
NotifySettings _defaultUserNotifySettings;