Skip to content

Commit b378b7b

Browse files
committed
Various fixes
1 parent ff476cb commit b378b7b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

‎submodules/TelegramUI/Components/PeerInfo/PeerInfoScreen/Sources/PeerInfoScreen.swift

+6
Original file line numberDiff line numberDiff line change
@@ -12707,6 +12707,12 @@ public final class PeerInfoScreenImpl: ViewController, PeerInfoScreen, KeyShortc
1270712707
self.starsContext = nil
1270812708
}
1270912709

12710+
if isMyProfile, let profileGiftsContext {
12711+
profileGiftsContext.updateFilter(.All)
12712+
profileGiftsContext.updateSorting(.date)
12713+
profileGiftsContext.reload()
12714+
}
12715+
1271012716
self.presentationData = updatedPresentationData?.0 ?? context.sharedContext.currentPresentationData.with { $0 }
1271112717

1271212718
let baseNavigationBarPresentationData = NavigationBarPresentationData(presentationData: self.presentationData)

‎submodules/TelegramUI/Sources/ChatControllerOpenAttachmentMenu.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ extension ChatControllerImpl {
620620
if let peer = strongSelf.presentationInterfaceState.renderedPeer?.peer, let starsContext = context.starsContext {
621621
let premiumGiftOptions = strongSelf.presentationInterfaceState.premiumGiftOptions
622622
if !premiumGiftOptions.isEmpty {
623-
let controller = PremiumGiftAttachmentScreen(context: context, starsContext: starsContext, peerId: peer.id, premiumOptions: premiumGiftOptions, hasBirthday: true, completion: { [weak self] in
623+
let controller = PremiumGiftAttachmentScreen(context: context, starsContext: starsContext, peerId: peer.id, premiumOptions: premiumGiftOptions, hasBirthday: strongSelf.presentationInterfaceState.hasBirthdayToday, completion: { [weak self] in
624624
guard let self else {
625625
return
626626
}

0 commit comments

Comments
 (0)