Skip to content

Commit

Permalink
feat(SplitView): Close MenuDrawer when user touch a notification
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinperignon committed Jul 12, 2023
1 parent 00f498a commit 38f030e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Mail/Views/SplitView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 38f030e

Please sign in to comment.