mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +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
|
||||
: (results->winnersCount + results->unclaimedCount);
|
||||
const auto months = start ? start->months : results->months;
|
||||
const auto group = !start->channels.empty()
|
||||
&& start->channels.front()->isMegagroup();
|
||||
const auto group = results
|
||||
? 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
|
||||
? tr::lng_prizes_end_text
|
||||
: tr::lng_prizes_how_text)(
|
||||
|
|
Loading…
Add table
Reference in a new issue