-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Fix calls from Phone recents opening without starting #2304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -2545,6 +2545,18 @@ private func extractAccountManagerState(records: AccountRecordsView<TelegramAcco | |||||||
|
|
||||||||
| func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { | ||||||||
| if #available(iOS 10.0, *) { | ||||||||
| let startCallHandlePrefix = "TGCA" | ||||||||
| if userActivity.activityType == NSStringFromClass(INStartCallIntent.self), | ||||||||
| let handle = userActivity.userInfo?["handle"] as? String, | ||||||||
| handle.hasPrefix(startCallHandlePrefix), | ||||||||
| let peerIdValue = Int64(handle.dropFirst(startCallHandlePrefix.count)) { | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| let peerId = PeerId(peerIdValue) | ||||||||
| if peerId.namespace == Namespaces.Peer.CloudUser { | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| self.startCallWhenReady(accountId: nil, peerId: peerId, isVideo: false) | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| return true | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| } | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Webb |
||||||||
| } | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wqqml |
||||||||
|
|
||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 001736 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 0017364 |
||||||||
| var startCallContacts: [INPerson]? | ||||||||
| var isVideo = false | ||||||||
| if let startCallIntent = userActivity.interaction?.intent as? SupportedStartCallIntent { | ||||||||
|
|
||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.