2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 15:05:56 +00:00

Remove General meta-forum-topic.

This commit is contained in:
John Preston
2022-10-13 12:46:30 +04:00
parent 92a4b27e65
commit 9fccdf21cc
8 changed files with 12 additions and 41 deletions

View File

@@ -374,9 +374,6 @@ void ForumTopic::requestChatListMessage() {
}
TimeId ForumTopic::adjustedChatListTimeId() const {
if (isGeneral()) {
return TimeId(1);
}
const auto result = chatListTimeId();
#if 0 // #TODO forum draft
if (const auto draft = cloudDraft()) {
@@ -419,10 +416,10 @@ QString ForumTopic::title() const {
}
void ForumTopic::applyTitle(const QString &title) {
if (_title == title || (isGeneral() && !_title.isEmpty())) {
if (_title == title) {
return;
}
_title = isGeneral() ? "General! Topic." : title; // #TODO lang-forum
_title = title;
++_titleVersion;
_defaultIcon = QImage();
indexTitleParts();