Skip to content

Commit 81ccd20

Browse files
Fixed crash on older devices when adding multiple images quickly
1 parent 266c0b3 commit 81ccd20

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
77
- Renaming of a channel in ChannelInfo not persisting extra data
88
- Channel list item swipe gesture collision with native gesture
99
- Attributes from `MessageActionInfo` are now public
10+
- Crash on older devices when adding multiple images quickly
1011

1112
# [4.24.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.24.0)
1213
_November 16, 2022_

Sources/StreamChatSwiftUI/ChatChannel/Composer/AddedImageAttachmentsView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public struct AddedImageAttachmentsView: View {
5555
}
5656
.frame(height: imageSize)
5757
.onChange(of: images) { [images] newValue in
58-
if newValue.count > images.count {
58+
if #available(iOS 15, *), newValue.count > images.count {
5959
let last = newValue.last
6060
withAnimation {
6161
reader.scrollTo(last?.id, anchor: .trailing)

0 commit comments

Comments
 (0)