Skip to content

Commit

Permalink
Don't scroll down the chat view after using ImageViewer in full screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
lissine0 authored and FriedrichAltheide committed Oct 16, 2023
1 parent 18c9f7f commit cf93c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Monal/Classes/chatViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -2335,7 +2335,7 @@ -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
if([info[@"mimeType"] hasPrefix:@"image/gif"])
animatedImageData = [NSData dataWithContentsOfFile:info[@"cacheFile"]];
UIViewController* imageViewer = [[SwiftuiInterface new] makeImageViewer:image withFilename:info[@"filename"] andAnimatedImageData:animatedImageData];
imageViewer.modalPresentationStyle = UIModalPresentationFullScreen;
imageViewer.modalPresentationStyle = UIModalPresentationOverFullScreen;
[self presentViewController:imageViewer animated:YES completion:^{}];
});
}
Expand Down

0 comments on commit cf93c7d

Please sign in to comment.