You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Composer state now behaves as a two-level stack: entering a command pushes a clean state on top (stashing pre-command text, picker attachments, and mentions), and cancelling the command pops back to the restored state. Sending a command triggers a full reset — the stash is discarded with everything else.
Pure command triggers (e.g. "/" or "/gi") are stripped from the stash so cancelling does not restore phantom trigger characters.
Also reorders the attachment picker's onCommandSelected to call selectCommand before consumePickerSession — otherwise the picker clears the composer attachments before the controller can stash them.
Copy file name to clipboardExpand all lines: stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/messages/attachments/AttachmentPickerActions.kt
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -115,8 +115,11 @@ public data class AttachmentPickerActions(
Copy file name to clipboardExpand all lines: stream-chat-android-ui-common/src/main/kotlin/io/getstream/chat/android/ui/common/feature/messages/composer/MessageComposerController.kt
+73-2Lines changed: 73 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -349,6 +349,26 @@ public class MessageComposerController(
0 commit comments