2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Improve top bar design for forum / topic.

This commit is contained in:
John Preston
2022-10-20 15:14:55 +04:00
parent 3a967bbbfe
commit f9173ea849
5 changed files with 62 additions and 16 deletions

View File

@@ -1924,7 +1924,9 @@ void History::applyPinnedUpdate(const MTPDupdateDialogPinned &data) {
TimeId History::adjustedChatListTimeId() const {
const auto result = chatListTimeId();
if (const auto draft = cloudDraft(MsgId(0))) {
if (!Data::DraftIsNull(draft) && !session().supportMode()) {
if (!peer->forum()
&& !Data::DraftIsNull(draft)
&& !session().supportMode()) {
return std::max(result, draft->date);
}
}
@@ -2914,6 +2916,9 @@ void History::forumChanged(Data::Forum *old) {
} else {
_flags &= ~Flag::IsForum;
}
if (cloudDraft(MsgId(0))) {
updateChatListSortPosition();
}
}
not_null<History*> History::migrateToOrMe() const {