mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 08:05:12 +00:00
Fix crash in giveaway results view.
This commit is contained in:
@@ -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)(
|
||||||
|
Reference in New Issue
Block a user