Show messages count in forum.

This commit is contained in:
John Preston
2022-11-08 19:48:46 +04:00
parent 8ee28f6665
commit d0d2a4f488
5 changed files with 27 additions and 10 deletions
@@ -276,6 +276,10 @@ rpl::producer<int> RepliesList::fullCount() const {
return _fullCount.value() | rpl::filter_optional();
}
rpl::producer<std::optional<int>> RepliesList::maybeFullCount() const {
return _fullCount.value();
}
bool RepliesList::unreadCountKnown() const {
return _unreadCount.current().has_value();
}