mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix unread mark badge in new forums layout.
This commit is contained in:
@@ -635,7 +635,7 @@ void SubsectionTabs::refreshSlice() {
|
||||
const auto push = [&](not_null<Data::Thread*> thread) {
|
||||
const auto topic = thread->asTopic();
|
||||
const auto sublist = thread->asSublist();
|
||||
const auto badges = [&] {
|
||||
auto badges = [&] {
|
||||
if (!topic && !sublist) {
|
||||
return Dialogs::BadgesState();
|
||||
} else if (thread->chatListUnreadState().known) {
|
||||
@@ -650,6 +650,10 @@ void SubsectionTabs::refreshSlice() {
|
||||
}
|
||||
return thread->chatListBadgesState();
|
||||
}();
|
||||
if (topic) {
|
||||
// Don't show the small indicators for non-visited unread topics.
|
||||
badges.unread = false;
|
||||
}
|
||||
slice.push_back({
|
||||
.thread = thread,
|
||||
.badges = badges,
|
||||
|
||||
Reference in New Issue
Block a user