Signal-iOS/SignalUI/ViewControllers/AttachmentApproval
Igor Solomennikov db0c4e7c73 Fix crash when opening media flow with message pre-populated.
Steps to reproduce:
• open group chat and type a message containing "@" but don't send it.
• tap on + and select last photo/video from the strip.
• observe app crashing.

Cause of crash:
Attempting to access a child view controller of UIPageViewController
while using force unwrap when UIPageViewController's view is not yet loaded.

The fix:
• Remove force unwrapping (linter was complaining about that too).
• Add "isViewLoaded" check to the method that was causing the crash.
2022-05-25 11:42:04 -07:00
..
ApprovalRailCellView.swift Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
AttachmentApprovalToolbar.swift Fix violations of SwiftLint's attributes rule 2022-05-14 09:07:42 -05:00
AttachmentApprovalViewController.swift Fix crash when opening media flow with message pre-populated. 2022-05-25 11:42:04 -07:00
AttachmentCaptionToolbar.swift Lint 2022-04-13 20:23:22 -07:00
AttachmentCaptionViewController.swift Fix violations of SwiftLint's attributes rule 2022-05-14 09:07:42 -05:00
AttachmentItemCollection.swift Add SignalUI framework target. 2021-10-19 09:39:53 -03:00
AttachmentPrepViewController.swift Address PR feedback. 2022-04-22 11:15:21 -07:00
AttachmentTextToolbar.swift Lint 2022-04-13 20:23:22 -07:00
AttachmentTextView.swift Add SignalUI framework target. 2021-10-19 09:39:53 -03:00