mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Merge commit 'b378b7b282985bd0d1801c31d93ab89248131180' into beta
This commit is contained in:
commit
21c9965750
@ -2638,7 +2638,7 @@ public class GiftViewScreen: ViewControllerComponentContainer {
|
||||
giftsPeerId = peerId
|
||||
text = added ? presentationData.strings.Gift_Displayed_ChannelText : presentationData.strings.Gift_Hidden_ChannelText
|
||||
} else {
|
||||
giftsPeerId = arguments.peerId
|
||||
giftsPeerId = context.account.peerId
|
||||
text = added ? presentationData.strings.Gift_Displayed_NewText : presentationData.strings.Gift_Hidden_NewText
|
||||
}
|
||||
|
||||
|
@ -12707,6 +12707,12 @@ public final class PeerInfoScreenImpl: ViewController, PeerInfoScreen, KeyShortc
|
||||
self.starsContext = nil
|
||||
}
|
||||
|
||||
if isMyProfile, let profileGiftsContext {
|
||||
profileGiftsContext.updateFilter(.All)
|
||||
profileGiftsContext.updateSorting(.date)
|
||||
profileGiftsContext.reload()
|
||||
}
|
||||
|
||||
self.presentationData = updatedPresentationData?.0 ?? context.sharedContext.currentPresentationData.with { $0 }
|
||||
|
||||
let baseNavigationBarPresentationData = NavigationBarPresentationData(presentationData: self.presentationData)
|
||||
|
@ -620,7 +620,7 @@ extension ChatControllerImpl {
|
||||
if let peer = strongSelf.presentationInterfaceState.renderedPeer?.peer, let starsContext = context.starsContext {
|
||||
let premiumGiftOptions = strongSelf.presentationInterfaceState.premiumGiftOptions
|
||||
if !premiumGiftOptions.isEmpty {
|
||||
let controller = PremiumGiftAttachmentScreen(context: context, starsContext: starsContext, peerId: peer.id, premiumOptions: premiumGiftOptions, hasBirthday: true, completion: { [weak self] in
|
||||
let controller = PremiumGiftAttachmentScreen(context: context, starsContext: starsContext, peerId: peer.id, premiumOptions: premiumGiftOptions, hasBirthday: strongSelf.presentationInterfaceState.hasBirthdayToday, completion: { [weak self] in
|
||||
guard let self else {
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user