Skip to content

Commit 8abf765

Browse files
committed
Merge branch 'fix/INBIOS-143-application-is-crashing-when-open-notification-while-report-a-problem-screen-is-opened' into 'release/4.17.0'
INBIOS-143 Fix nil unwrapping of IBOutlet See merge request ProtonMail/protonmail-ios!4317
2 parents d921045 + cd952bc commit 8abf765

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ProtonMail/ProtonMail/ViewControllers/APP/Mailbox/MailboxViewController/MailboxCoordinator.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,8 @@ extension MailboxCoordinator {
569569
}
570570

571571
private func presentPageViewsFor(message: MessageEntity) {
572+
viewController?.loadViewIfNeeded()
573+
572574
let pageVM = MessagePagesViewModel(
573575
initialID: message.messageID,
574576
isUnread: viewController?.isShowingUnreadMessageOnly ?? false,
@@ -579,6 +581,7 @@ extension MailboxCoordinator {
579581
self?.editScheduleMsg(messageID: msgID, originalScheduledTime: originalScheduledTime)
580582
}
581583
)
584+
582585
presentPageViews(pageVM: pageVM)
583586
}
584587

ProtonMail/ProtonMail/ViewControllers/APP/Mailbox/MailboxViewController/MailboxViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class MailboxViewController: AttachmentPreviewViewController, ComposeSaveHintPro
139139
}
140140
private var shouldKeepSkeletonUntilManualDismissal = false
141141
var isShowingUnreadMessageOnly: Bool {
142-
return self.unreadFilterButton.isSelected
142+
unreadFilterButton?.isSelected ?? false
143143
}
144144

145145
private let messageCellPresenter = NewMailboxMessageCellPresenter()

0 commit comments

Comments
 (0)