Skip to content

Commit

Permalink
Fix a bug with photo attachment picker not displaying (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmitrevski authored Nov 5, 2024
1 parent 1ecdb67 commit 56c1f22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix crash when opening message overlay in iPad with a TabBar [#627](https://github.com/GetStream/stream-chat-swiftui/pull/627)
- Only show Leave Group option if the user has leave-channel permission [#633](https://github.com/GetStream/stream-chat-swiftui/pull/633)
- Fix Channel List stuck in Empty View State in rare conditions [#639](https://github.com/GetStream/stream-chat-swiftui/pull/639)
- Fix a bug with photo attachment picker indicator not displaying [#640](https://github.com/GetStream/stream-chat-swiftui/pull/640)

# [4.65.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.65.0)
_October 18, 2024_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public struct PhotoAttachmentCell: View {
@State private var compressing = false
@State private var loading = false
@State var requestId: PHContentEditingInputRequestID?
@State var idOverlay = UUID()

var asset: PHAsset
var onImageTap: (AddedAsset) -> Void
Expand Down Expand Up @@ -113,6 +114,7 @@ public struct PhotoAttachmentCell: View {
)
)
}
idOverlay = UUID()
}
}
}
Expand Down Expand Up @@ -150,6 +152,7 @@ public struct PhotoAttachmentCell: View {
)
}
}
.id(idOverlay)
)
.onAppear {
self.loading = false
Expand Down

0 comments on commit 56c1f22

Please sign in to comment.