Fixed #1824 (story image width is wrong on launch)

This commit is contained in:
David Sinclair 2023-10-23 21:41:54 -05:00 committed by Samuel Clay
parent ede121e144
commit cea1b424ea

View file

@ -27,6 +27,7 @@
@property (nonatomic) CGFloat statusBarHeight;
@property (nonatomic) BOOL wasNavigationBarHidden;
@property (nonatomic) BOOL doneInitialRefresh;
@property (nonatomic, strong) NSTimer *autoscrollTimer;
@property (nonatomic, strong) NSTimer *autoscrollViewTimer;
@property (nonatomic, strong) NSString *restoringStoryId;
@ -1099,6 +1100,14 @@
}
[self becomeFirstResponder];
if (!self.isPhoneOrCompact && !self.doneInitialRefresh) {
self.doneInitialRefresh = YES;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.1 * NSEC_PER_SEC),
dispatch_get_main_queue(), ^{
[self refreshPages];
});
}
}
- (void)changeToNextPage:(id)sender {