Various fixes

This commit is contained in:
Ilya Laktyushin 2024-02-13 06:42:22 -04:00
parent 089e818e00
commit 20ae8cc819
2 changed files with 6 additions and 2 deletions

View File

@ -11043,7 +11043,7 @@ Sorry for the inconvenience.";
"ChannelBoost.Table.Group.Wallpaper_any" = "%@ Group Backgrounds";
"ChannelBoost.Table.Group.CustomWallpaper" = "Custom Group Background";
"Premium.Group.BoostByGiftDescription" = "Boost your group by gifting your subscribers Telegram Premium. [Get boosts >]()";
"Premium.Group.BoostByGiftDescription" = "Boost your group by gifting your members Telegram Premium. [Get boosts >]()";
"Conversation.BoostGroup" = "BOOST";

View File

@ -1519,7 +1519,11 @@ public func channelStatsController(context: AccountContext, updatedPresentationD
peerId: peerId,
mode: .owner(subject: nil),
status: boostStatus,
myBoostStatus: myBoostStatus
myBoostStatus: myBoostStatus,
openGift: { [weak controller] in
let giveawayController = createGiveawayController(context: context, peerId: peerId, subject: .generic)
controller?.push(giveawayController)
}
)
boostController.boostStatusUpdated = { boostStatus in
boostDataPromise.set(.single(boostStatus))