mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 05:06:58 +02:00
MESSENGER-5695 remove borders from avatar photos
This commit is contained in:
committed by
Frank Rotermund
parent
9cf8aa24dd
commit
1196cee418
@@ -82,6 +82,8 @@ class RoomInfoBasicView: UIView {
|
||||
func configure(withViewData viewData: RoomInfoBasicViewData) {
|
||||
let avatarImage = AvatarGenerator.generateAvatar(forMatrixItem: viewData.roomId, withDisplayName: viewData.roomDisplayName)
|
||||
|
||||
avatarImageView.contentMode = .scaleAspectFill
|
||||
|
||||
// bwi: update room avatar
|
||||
if let avatarUrl = viewData.avatarUrl {
|
||||
if !avatarUrl.isEmpty {
|
||||
@@ -91,7 +93,7 @@ class RoomInfoBasicView: UIView {
|
||||
withType: nil,
|
||||
andImageOrientation: .up,
|
||||
toFitViewSize: avatarImageView.frame.size,
|
||||
with: MXThumbnailingMethodCrop,
|
||||
with: MXThumbnailingMethodScale,
|
||||
previewImage: avatarImage,
|
||||
mediaManager: viewData.mediaManager)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user