Skip to content

Commit 3159ae6

Browse files
Updated scalling of avatar images
1 parent ef19b7b commit 3159ae6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
### 🔄 Changed
77
- Video and giphy attachments now use `makeMessageViewModifier`
8+
- Updated scalling of avatar images
89

910
# [4.34.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.34.0)
1011
_July 06, 2023_

Sources/StreamChatSwiftUI/ChatChannelList/ChannelAvatarsMerger.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public class ChannelAvatarsMerger: ChannelAvatarsMerging {
4040

4141
var combinedImage: UIImage?
4242

43-
let avatarImages = avatars.map {
44-
imageProcessor.scale(image: $0, to: .avatarThumbnailSize)
43+
let avatarImages = avatars.compactMap { [weak self] in
44+
self?.imageProcessor.scale(image: $0, to: .avatarThumbnailSize)
4545
}
4646

4747
// The half of the width of the avatar

0 commit comments

Comments
 (0)