Fix call issue

This commit is contained in:
Ali
2020-06-09 17:05:24 +04:00
parent 5ffff6fc84
commit 874396fbbb
5 changed files with 65 additions and 19 deletions

View File

@@ -91,7 +91,7 @@ func handleTextLinkActionImpl(context: AccountContext, peerId: PeerId?, navigate
case .tap:
switch itemLink {
case .url(let url, var concealed):
let (parsedString, parsedConcealed) = parseUrl(url: url)
let (parsedString, parsedConcealed) = parseUrl(url: url, wasConcealed: false)
if parsedConcealed {
concealed = true
}
@@ -128,7 +128,7 @@ func handleTextLinkActionImpl(context: AccountContext, peerId: PeerId?, navigate
let canOpenIn = availableOpenInOptions(context: context, item: .url(url: url)).count > 1
let openText = canOpenIn ? presentationData.strings.Conversation_FileOpenIn : presentationData.strings.Conversation_LinkDialogOpen
let actionSheet = ActionSheetController(presentationData: presentationData)
let (displayUrl, _) = parseUrl(url: url)
let (displayUrl, _) = parseUrl(url: url, wasConcealed: false)
actionSheet.setItemGroups([ActionSheetItemGroup(items: [
ActionSheetTextItem(title: displayUrl),
ActionSheetButtonItem(title: openText, color: .accent, action: { [weak actionSheet] in