2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Improve phrases for giveaways in groups.

This commit is contained in:
John Preston
2024-02-17 21:42:21 +04:00
parent 46d5a93c96
commit 0163ec314a
4 changed files with 47 additions and 21 deletions

View File

@@ -684,7 +684,10 @@ void SessionNavigation::applyBoost(
done({});
} else {
const auto weak = std::make_shared<QPointer<Ui::BoxContent>>();
const auto reassign = [=](std::vector<int> slots, int sources) {
const auto reassign = [=](
std::vector<int> slots,
int groups,
int channels) {
const auto count = int(slots.size());
const auto callback = [=](Ui::BoostCounters counters) {
if (const auto strong = weak->data()) {
@@ -696,10 +699,14 @@ void SessionNavigation::applyBoost(
lt_count,
count,
lt_channels,
tr::lng_boost_reassign_channels(
tr::now,
lt_count,
sources)));
(!groups
? tr::lng_boost_reassign_channels
: !channels
? tr::lng_boost_reassign_groups
: tr::lng_boost_reassign_mixed)(
tr::now,
lt_count,
groups + channels)));
};
applyBoostsChecked(
channel,