mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix crash in giveaway results view.
This commit is contained in:
parent
0163ec314a
commit
ebf4e88a10
1 changed files with 9 additions and 2 deletions
|
@ -1363,8 +1363,15 @@ void GiveawayInfoBox(
|
||||||
? start->quantity
|
? start->quantity
|
||||||
: (results->winnersCount + results->unclaimedCount);
|
: (results->winnersCount + results->unclaimedCount);
|
||||||
const auto months = start ? start->months : results->months;
|
const auto months = start ? start->months : results->months;
|
||||||
const auto group = !start->channels.empty()
|
const auto group = results
|
||||||
&& start->channels.front()->isMegagroup();
|
? results->channel->isMegagroup()
|
||||||
|
: !start->channels.empty()
|
||||||
|
? start->channels.front()->isMegagroup()
|
||||||
|
: false;
|
||||||
|
const auto group = results
|
||||||
|
? results->channel->isMegagroup()
|
||||||
|
: (!start->channels.empty()
|
||||||
|
&& start->channels.front()->isMegagroup());
|
||||||
text.append((finished
|
text.append((finished
|
||||||
? tr::lng_prizes_end_text
|
? tr::lng_prizes_end_text
|
||||||
: tr::lng_prizes_how_text)(
|
: tr::lng_prizes_how_text)(
|
||||||
|
|
Loading…
Add table
Reference in a new issue