Merge pull request #1193 from GetStream/hotfix/commands
fix(ui): Fix commands resetting the `StreamMessageInputController.value`
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
🐞 Fixed
|
🐞 Fixed
|
||||||
|
|
||||||
-[[#1180]](https://github.com/GetStream/stream-chat-flutter/issues/1180) Fix file download
|
-[[#1180]](https://github.com/GetStream/stream-chat-flutter/issues/1180) Fix file download
|
||||||
|
- Fix commands resetting the `StreamMessageInputController.value`
|
||||||
|
|
||||||
## 4.2.0
|
## 4.2.0
|
||||||
|
|
||||||
|
|||||||
@@ -1221,7 +1221,7 @@ class StreamMessageInputState extends State<StreamMessageInput>
|
|||||||
|
|
||||||
void _setCommand(Command c) {
|
void _setCommand(Command c) {
|
||||||
_effectiveController
|
_effectiveController
|
||||||
..clear()
|
..reset()
|
||||||
..command = c;
|
..command = c;
|
||||||
setState(() {
|
setState(() {
|
||||||
_showCommandsOverlay = false;
|
_showCommandsOverlay = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user