Various improvements

This commit is contained in:
Ilya Laktyushin
2024-07-16 06:07:25 +04:00
parent 49e5ac7e59
commit 002e0a7082
2 changed files with 4 additions and 1 deletions

View File

@@ -430,7 +430,8 @@ private final class StarsTransactionSheetContent: CombinedComponent {
),
action: {
if toPeer.id.namespace == Namespaces.Peer.CloudUser && toPeer.id.id._internalGetInt64Value() == 777000 {
let presentationData = component.context.sharedContext.currentPresentationData.with { $0 }
component.context.sharedContext.openExternalUrl(context: component.context, urlContext: .generic, url: strings.Stars_Transaction_FragmentUnknown_URL, forceExternal: true, presentationData: presentationData, navigationController: nil, dismissInput: {})
} else if delayedCloseOnOpenPeer {
component.openPeer(toPeer)
Queue.mainQueue().after(1.0, {