mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Fixed display of subscribers count in dialogs suggestions.
This commit is contained in:
@@ -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));
|
||||||
|
Reference in New Issue
Block a user