File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Sources/StreamChatSwiftUI/ChatChannel/Composer Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
10
10
11
11
### 🐞 Fixed
12
12
- ` AttachmentTextView ` respects configured body font
13
+ - Attachments persisted after message editing
13
14
14
15
### ✅ Added
15
16
- Option to specify bottom offset in ` ReactionsOverlayView `
Original file line number Diff line number Diff line change @@ -469,7 +469,10 @@ open class MessageComposerViewModel: ObservableObject {
469
469
messageId: message. id
470
470
)
471
471
472
- messageController. editMessage ( text: adjustedText) { [ weak self] error in
472
+ messageController. editMessage (
473
+ text: adjustedText,
474
+ attachments: message. allAttachments. toAnyAttachmentPayload ( )
475
+ ) { [ weak self] error in
473
476
if error != nil {
474
477
self ? . errorShown = true
475
478
} else {
You can’t perform that action at this time.
0 commit comments