mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 13:46:57 +02:00
RoomViewController: Fixed crash on 6+: "Starting the app in portrait, then rotate the device in landscaped" made the app crash.
The reason is that in these conditions, there is no selected room. So, self.previewScrollView is nil
This commit is contained in:
@@ -366,7 +366,7 @@
|
||||
[self showExpandedHeader:NO];
|
||||
|
||||
// Hide preview header (if any) during device rotation
|
||||
BOOL isPreview = !self.previewScrollView.isHidden;
|
||||
BOOL isPreview = self.previewScrollView && !self.previewScrollView.isHidden;
|
||||
if (isPreview)
|
||||
{
|
||||
[self showPreviewHeader:NO];
|
||||
|
||||
Reference in New Issue
Block a user