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:
@@ -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());
|
||||
|
Reference in New Issue
Block a user