fix potential infinite loop

pull/1061/head
Ryan ZHAO 3 months ago
parent bce5eda5c2
commit 0b33e7a5fb

@ -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

Loading…
Cancel
Save