MESSENGER-5695 remove borders from avatar photos

This commit is contained in:
Arnfried Griesert
2024-03-04 06:57:19 +00:00
committed by Frank Rotermund
parent 9cf8aa24dd
commit 1196cee418
3 changed files with 12 additions and 2 deletions
@@ -2033,6 +2033,7 @@ SSOAuthenticationPresenterDelegate>
profileCell.mxkLabel.text = [VectorL10n settingsProfilePicture];
profileCell.accessibilityIdentifier=@"SettingsVCProfilPictureStaticText";
profileCell.mxkLabel.textColor = ThemeService.shared.theme.textPrimaryColor;
profileCell.mxkImageView.contentMode = UIViewContentModeScaleAspectFill;
if([BWIBuildSettings.shared showChangeProfilePictureHint] && [BWIBuildSettings.shared isFederationEnabled]) {
profileCell.bwiHint.text = [BWIL10n settingsChangeProfileAvatarHint];
@@ -2063,9 +2064,10 @@ SSOAuthenticationPresenterDelegate>
withType:nil
andImageOrientation:UIImageOrientationUp
toFitViewSize:profileCell.mxkImageView.frame.size
withMethod:MXThumbnailingMethodCrop
withMethod:MXThumbnailingMethodScale
previewImage:avatarImage
mediaManager:session.mediaManager];
[profileCell.mxkImageView setContentMode:UIViewContentModeScaleAspectFill];
}
else
{