mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-24 01:06:59 +00:00
Fixed display of subscribers count in dialogs suggestions.
This commit is contained in:
parent
10c427127e
commit
7388f46adf
@ -290,7 +290,10 @@ RecentRow::RecentRow(not_null<PeerData*> peer)
|
||||
} else if (const auto chat = peer->asChat()) {
|
||||
if (chat->count > 0) {
|
||||
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()) {
|
||||
if (channel->membersCountKnown()) {
|
||||
@ -298,7 +301,7 @@ RecentRow::RecentRow(not_null<PeerData*> peer)
|
||||
? tr::lng_chat_status_subscribers
|
||||
: tr::lng_chat_status_members)(
|
||||
tr::now,
|
||||
lt_count,
|
||||
lt_count_decimal,
|
||||
channel->membersCount()));
|
||||
}
|
||||
}
|
||||
@ -655,7 +658,7 @@ void MyChannelsController::appendRow(not_null<ChannelData*> channel) {
|
||||
? tr::lng_chat_status_subscribers
|
||||
: tr::lng_chat_status_members)(
|
||||
tr::now,
|
||||
lt_count,
|
||||
lt_count_decimal,
|
||||
channel->membersCount()));
|
||||
}
|
||||
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_members)(
|
||||
tr::now,
|
||||
lt_count,
|
||||
lt_count_decimal,
|
||||
channel->membersCount()));
|
||||
}
|
||||
delegate()->peerListAppendRow(std::move(row));
|
||||
|
Loading…
Reference in New Issue
Block a user