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

Correctly track General editing service messages.

This commit is contained in:
John Preston
2022-11-29 20:21:35 +04:00
parent 5e20c15c20
commit 3c799a5cc1
5 changed files with 42 additions and 6 deletions

View File

@@ -435,6 +435,18 @@ void ForumTopic::setClosedAndSave(bool closed) {
}).send();
}
bool ForumTopic::hidden() const {
return (_flags & Flag::Hidden);
}
void ForumTopic::setHidden(bool hidden) {
if (hidden) {
_flags |= Flag::Hidden;
} else {
_flags &= ~Flag::Hidden;
}
}
void ForumTopic::indexTitleParts() {
_titleWords.clear();
_titleFirstLetters.clear();