Show 'X subscribers' in channel ConfirmInviteBox.

Fixes https://bugs.telegram.org/c/2059
This commit is contained in:
John Preston 2021-08-18 15:57:52 +03:00
parent 1792bed721
commit 8e0b9b685c
1 changed files with 5 additions and 0 deletions

View File

@ -112,6 +112,11 @@ ConfirmInviteBox::ConfirmInviteBox(
? tr::lng_channel_invite_private(tr::now)
: (!_participants.empty() && _participants.size() < count)
? tr::lng_group_invite_members(tr::now, lt_count, count)
: (count > 0 && _isChannel)
? tr::lng_chat_status_subscribers(
tr::now,
lt_count_decimal,
count)
: (count > 0)
? tr::lng_chat_status_members(tr::now, lt_count_decimal, count)
: _isChannel