From a40c21881e563e6a1e3faad642a80477c46d5779 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Tue, 21 Jan 2020 14:02:53 +1100 Subject: [PATCH] Fix crash --- Signal/src/Loki/View Controllers/LandingVC.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Signal/src/Loki/View Controllers/LandingVC.swift b/Signal/src/Loki/View Controllers/LandingVC.swift index 1b1ad0b91..2bc57c080 100644 --- a/Signal/src/Loki/View Controllers/LandingVC.swift +++ b/Signal/src/Loki/View Controllers/LandingVC.swift @@ -110,7 +110,9 @@ final class LandingVC : UIViewController, LinkDeviceVCDelegate, DeviceLinkingMod override func viewDidDisappear(_ animated: Bool) { super.viewDidAppear(animated) - fakeChatView.contentOffset = fakeChatViewContentOffset + if let fakeChatViewContentOffset = fakeChatViewContentOffset { + fakeChatView.contentOffset = fakeChatViewContentOffset + } } // MARK: Interaction