diff --git a/Session/Conversations V2/ConversationVC+Interaction.swift b/Session/Conversations V2/ConversationVC+Interaction.swift index 7aff55ce1..1d54a52be 100644 --- a/Session/Conversations V2/ConversationVC+Interaction.swift +++ b/Session/Conversations V2/ConversationVC+Interaction.swift @@ -387,8 +387,12 @@ extension ConversationVC : InputViewDelegate, MessageCellDelegate, ContextMenuAc let shareVC = UIActivityViewController(activityItems: [ url ], applicationActivities: nil) navigationController!.present(shareVC, animated: true, completion: nil) case .textOnlyMessage: - guard let preview = viewItem.linkPreview, let urlAsString = preview.urlString, let url = URL(string: urlAsString) else { return } - openURL(url) + if let preview = viewItem.linkPreview, let urlAsString = preview.urlString, let url = URL(string: urlAsString) { + openURL(url) + } else if let reply = viewItem.quotedReply { + guard let indexPath = viewModel.ensureLoadWindowContainsQuotedReply(reply) else { return } + messagesTableView.scrollToRow(at: indexPath, at: UITableView.ScrollPosition.middle, animated: true) + } default: break } } diff --git a/Session/Conversations V2/ConversationVC.swift b/Session/Conversations V2/ConversationVC.swift index ead607a55..4bfd798ec 100644 --- a/Session/Conversations V2/ConversationVC.swift +++ b/Session/Conversations V2/ConversationVC.swift @@ -1,6 +1,5 @@ // TODO -// • Tapping replies // • Disappearing messages timer // • Brendan no likey buttons above text field // • Slight paging glitch @@ -492,7 +491,7 @@ final class ConversationVC : BaseVC, ConversationViewModelDelegate, OWSConversat scrollToInteraction(with: interactionID) } - private func scrollToInteraction(with interactionID: String) { + func scrollToInteraction(with interactionID: String) { guard let indexPath = viewModel.ensureLoadWindowContainsInteractionId(interactionID) else { return } messagesTableView.scrollToRow(at: indexPath, at: UITableView.ScrollPosition.middle, animated: true) } diff --git a/Session/Home/HomeVC.swift b/Session/Home/HomeVC.swift index 6e2722c6a..ba4a95ccd 100644 --- a/Session/Home/HomeVC.swift +++ b/Session/Home/HomeVC.swift @@ -322,7 +322,7 @@ final class HomeVC : BaseVC, UITableViewDataSource, UITableViewDelegate, UIViewC presentedVC.dismiss(animated: false, completion: nil) } let displayName = OWSProfileManager.shared().profileNameForRecipient(withID: getUserHexEncodedPublicKey()) - if displayName == "Brendan" && 0.2 < Double.random(in: 0...1) { // Show Brendan the old screen approx 1 out of 5 times to mess with him + if displayName == "Brendan" && 0.4 < Double.random(in: 0...1) { // Show Brendan the old screen approx 1 out of 5 times to mess with him let conversationVC = ConversationViewController() conversationVC.configure(for: thread, action: action, focusMessageId: highlightedMessageID) self.navigationController?.setViewControllers([ self, conversationVC ], animated: true)