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

@@ -998,6 +998,10 @@ void HistoryService::setServiceText(const PreparedText &prepared) {
_textHeight = 0;
}
void HistoryService::hideSpoilers() {
HistoryView::HideSpoilers(_text);
}
void HistoryService::markMediaAsReadHook() {
if (const auto selfdestruct = Get<HistoryServiceSelfDestruct>()) {
if (!selfdestruct->destructAt) {