From 0b33e7a5fbb500afc1d6250dadbd81a85b275b59 Mon Sep 17 00:00:00 2001 From: Ryan ZHAO <> Date: Fri, 17 Jan 2025 10:31:11 +1100 Subject: [PATCH] fix potential infinite loop --- Session/Conversations/ConversationVC.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Session/Conversations/ConversationVC.swift b/Session/Conversations/ConversationVC.swift index 89c36c2be..b255442e2 100644 --- a/Session/Conversations/ConversationVC.swift +++ b/Session/Conversations/ConversationVC.swift @@ -1398,7 +1398,7 @@ final class ConversationVC: BaseVC, LibSessionRespondingViewController, Conversa return screen.coordinateSpace } else { var result: UIView? = self.view.superview - while result?.frame != UIScreen.main.bounds { + while result != nil && result?.frame != UIScreen.main.bounds { result = result?.superview } return result