From 78cd1313fe35d7625d99b4fc571b51bb7aada6fb Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 17 Jan 2023 19:36:12 -0500 Subject: [PATCH] Fix new conversation VC not responding to status bar taps --- .../Conversation/ConversationViewController.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Tusker/Screens/Conversation/ConversationViewController.swift b/Tusker/Screens/Conversation/ConversationViewController.swift index 89aadfbf..b9bf1155 100644 --- a/Tusker/Screens/Conversation/ConversationViewController.swift +++ b/Tusker/Screens/Conversation/ConversationViewController.swift @@ -279,3 +279,13 @@ extension ConversationViewController { extension ConversationViewController: ToastableViewController { } + +extension ConversationViewController: StatusBarTappableViewController { + func handleStatusBarTapped(xPosition: CGFloat) -> StatusBarTapActionResult { + if case .displaying(let vc) = state { + return vc.handleStatusBarTapped(xPosition: xPosition) + } else { + return .continue + } + } +}