2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 23:15:59 +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

@@ -822,7 +822,10 @@ void RowPainter::Paint(
const auto badgesState = entry->chatListBadgesState();
const auto item = entry->chatListMessage();
const auto cloudDraft = [&]() -> const Data::Draft*{
if (thread && (!item || !badgesState.unread)) {
if (!thread) {
return nullptr;
}
if ((!peer || !peer->isForum()) && (!item || !badgesState.unread)) {
// Draw item, if there are unread messages.
const auto draft = thread->owningHistory()->cloudDraft(
thread->topicRootId());