mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Improve top bar design for forum / topic.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user