mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 03:42:56 +00:00
Treat community rows like forums in forward boxes.
This commit is contained in:
@@ -62,8 +62,9 @@ namespace {
|
||||
constexpr auto kSortByOnlineThrottle = 3 * crl::time(1000);
|
||||
constexpr auto kSearchPerPage = 50;
|
||||
|
||||
[[nodiscard]] Data::CommunityInfo *JoinedCommunityChats(
|
||||
not_null<PeerData*> peer) {
|
||||
} // namespace
|
||||
|
||||
Data::CommunityInfo *JoinedCommunityChats(not_null<PeerData*> peer) {
|
||||
const auto channel = peer->asChannel();
|
||||
const auto info = (channel && channel->isCommunity())
|
||||
? channel->communityInfo()
|
||||
@@ -71,8 +72,6 @@ constexpr auto kSearchPerPage = 50;
|
||||
return (info && !info->histories().empty()) ? info : nullptr;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
object_ptr<Ui::BoxContent> PrepareContactsBox(
|
||||
not_null<Window::SessionController*> window) {
|
||||
using Mode = ContactsBoxController::SortMode;
|
||||
|
||||
Reference in New Issue
Block a user