From 04c558a30934c21eca0eef824a8a245d0a2a98b4 Mon Sep 17 00:00:00 2001 From: Valentin Perignon Date: Wed, 12 Jul 2023 14:10:57 +0200 Subject: [PATCH] feat(SplitView): Close MenuDrawer when user open from a notification --- Mail/Views/SplitView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mail/Views/SplitView.swift b/Mail/Views/SplitView.swift index 5b1b971d3..7ae242371 100644 --- a/Mail/Views/SplitView.swift +++ b/Mail/Views/SplitView.swift @@ -107,6 +107,8 @@ struct SplitView: View { let realm = mailboxManager.getRealm() realm.refresh() + navigationDrawerController.close() + let tappedNotificationMessage = realm.object(ofType: Message.self, forPrimaryKey: notificationPayload.messageId) // Original parent should always be in the inbox but maybe change in a later stage to always find the parent in inbox if let tappedNotificationThread = tappedNotificationMessage?.originalThread {