Add stories counter to hidden stories sources.

This commit is contained in:
John Preston
2023-07-05 13:12:38 +04:00
parent 57b7391f53
commit ee507722ba
2 changed files with 10 additions and 0 deletions
@@ -166,6 +166,12 @@ void StoriesRow::applySegments(const Dialogs::Stories::Element &element) {
_count = int(std::max(element.count, 1U));
_unreadCount = element.unreadCount;
refreshSegments();
setCustomStatus(_unreadCount
? tr::lng_contacts_stories_status_new(
tr::now,
lt_count,
_unreadCount)
: tr::lng_contacts_stories_status(tr::now, lt_count, _count));
}
void StoriesRow::updateGradient(QBrush unread) {