mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed display of subscribers count in dialogs suggestions.
This commit is contained in:
parent
10c427127e
commit
7388f46adf
1 changed files with 7 additions and 4 deletions
|
@ -290,7 +290,10 @@ RecentRow::RecentRow(not_null<PeerData*> peer)
|
||||||
} else if (const auto chat = peer->asChat()) {
|
} else if (const auto chat = peer->asChat()) {
|
||||||
if (chat->count > 0) {
|
if (chat->count > 0) {
|
||||||
setCustomStatus(
|
setCustomStatus(
|
||||||
tr::lng_chat_status_members(tr::now, lt_count, chat->count));
|
tr::lng_chat_status_members(
|
||||||
|
tr::now,
|
||||||
|
lt_count_decimal,
|
||||||
|
chat->count));
|
||||||
}
|
}
|
||||||
} else if (const auto channel = peer->asChannel()) {
|
} else if (const auto channel = peer->asChannel()) {
|
||||||
if (channel->membersCountKnown()) {
|
if (channel->membersCountKnown()) {
|
||||||
|
@ -298,7 +301,7 @@ RecentRow::RecentRow(not_null<PeerData*> peer)
|
||||||
? tr::lng_chat_status_subscribers
|
? tr::lng_chat_status_subscribers
|
||||||
: tr::lng_chat_status_members)(
|
: tr::lng_chat_status_members)(
|
||||||
tr::now,
|
tr::now,
|
||||||
lt_count,
|
lt_count_decimal,
|
||||||
channel->membersCount()));
|
channel->membersCount()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -655,7 +658,7 @@ void MyChannelsController::appendRow(not_null<ChannelData*> channel) {
|
||||||
? tr::lng_chat_status_subscribers
|
? tr::lng_chat_status_subscribers
|
||||||
: tr::lng_chat_status_members)(
|
: tr::lng_chat_status_members)(
|
||||||
tr::now,
|
tr::now,
|
||||||
lt_count,
|
lt_count_decimal,
|
||||||
channel->membersCount()));
|
channel->membersCount()));
|
||||||
}
|
}
|
||||||
delegate()->peerListAppendRow(std::move(row));
|
delegate()->peerListAppendRow(std::move(row));
|
||||||
|
@ -819,7 +822,7 @@ void RecommendationsController::appendRow(not_null<ChannelData*> channel) {
|
||||||
? tr::lng_chat_status_subscribers
|
? tr::lng_chat_status_subscribers
|
||||||
: tr::lng_chat_status_members)(
|
: tr::lng_chat_status_members)(
|
||||||
tr::now,
|
tr::now,
|
||||||
lt_count,
|
lt_count_decimal,
|
||||||
channel->membersCount()));
|
channel->membersCount()));
|
||||||
}
|
}
|
||||||
delegate()->peerListAppendRow(std::move(row));
|
delegate()->peerListAppendRow(std::move(row));
|
||||||
|
|
Loading…
Add table
Reference in a new issue