Fixed hiding spoilers in captions when switching sections.

This commit is contained in:
23rd 2022-01-24 15:56:30 +03:00 committed by John Preston
parent 443ca0b390
commit 021d0053be
1 changed files with 1 additions and 0 deletions

View File

@ -1611,6 +1611,7 @@ void Session::unregisterShownSpoiler(FullMsgId id) {
void Session::hideShownSpoilers() {
for (const auto &item : _shownSpoilers) {
item->hideSpoilers();
requestItemTextRefresh(item);
}
_shownSpoilers = base::flat_set<not_null<HistoryItem*>>();
}