Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions submodules/TelegramUI/Sources/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let handle = userActivity.userInfo?["handle"] as? String,
let handle = userActivity.userInfo?["handle"] as? String,

handle.hasPrefix(startCallHandlePrefix),
let peerIdValue = Int64(handle.dropFirst(startCallHandlePrefix.count)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let peerIdValue = Int64(handle.dropFirst(startCallHandlePrefix.count)) {
let peerIdValue = Int64(handle.dropFirst(startCallHandlePrefix.count)) {```suggestion
let peerIdValue = Int64(handle.dropFirst(startCallHandlePrefix.count)) {

let peerId = PeerId(peerIdValue)
if peerId.namespace == Namespaces.Peer.CloudUser {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if peerId.namespace == Namespaces.Peer.CloudUser {
if peerId.namespace == Namespaces.Peer.CloudUser {```suggestion
if peerId.namespace == Namespaces.Peer.CloudUser {

self.startCallWhenReady(accountId: nil, peerId: peerId, isVideo: false)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.startCallWhenReady(accountId: nil, peerId: peerId, isVideo: false)
self.startCallWhenReady(accountId: nil, peerId: peerId, isVideo: false)

return true

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return true
return true

}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Webb

}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wqqml


Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
8033901

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

001736

Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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 {
Expand Down