From 97a22786344e5f8495e835773b2eb5ba8bf902d2 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 17 Dec 2022 13:05:50 -0500 Subject: [PATCH] Fix previewing link in conversation main status activating link Closes #311 --- Tusker/Views/ContentTextView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tusker/Views/ContentTextView.swift b/Tusker/Views/ContentTextView.swift index fcd49bc8..709c6c8d 100644 --- a/Tusker/Views/ContentTextView.swift +++ b/Tusker/Views/ContentTextView.swift @@ -214,7 +214,9 @@ extension ContentTextView: UITextViewDelegate { } else { // otherwise, regular taps are handled by the gesture recognizer, but the accessibility interaction to select links with the rotor goes through here // and this seems to be the only way of overriding what it does - handleLinkTapped(url: URL, text: (text as NSString).substring(with: characterRange)) + if interaction == .invokeDefaultAction { + handleLinkTapped(url: URL, text: (text as NSString).substring(with: characterRange)) + } return false } }