From 48478de2602d80cd60f34dbc1a114386f39361ea Mon Sep 17 00:00:00 2001 From: Marissa Le Coz <129999395+marissa-signal@users.noreply.github.com> Date: Tue, 1 Oct 2024 17:50:22 -0400 Subject: [PATCH] [Call links] Show join error sheet in completion of dismissing activity indicator modal --- .../UserInterface/GroupCallViewController.swift | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Signal/Calls/UserInterface/GroupCallViewController.swift b/Signal/Calls/UserInterface/GroupCallViewController.swift index 002801beed..9f2d6842de 100644 --- a/Signal/Calls/UserInterface/GroupCallViewController.swift +++ b/Signal/Calls/UserInterface/GroupCallViewController.swift @@ -338,14 +338,15 @@ class GroupCallViewController: UIViewController { } } catch { Logger.warn("Call link lobby presentation failed with error \(error)") - OWSActionSheets.showActionSheet( - title: CallStrings.callLinkErrorSheetTitle, - message: OWSLocalizedString( - "CALL_LINK_JOIN_CALL_FAILURE_SHEET_DESCRIPTION", - comment: "Description of sheet presented when joining call from call link sheet fails." + return { + OWSActionSheets.showActionSheet( + title: CallStrings.callLinkErrorSheetTitle, + message: OWSLocalizedString( + "CALL_LINK_JOIN_CALL_FAILURE_SHEET_DESCRIPTION", + comment: "Description of sheet presented when joining call from call link sheet fails." + ) ) - ) - return nil + } } } }