From 806f176ee37e347f36b1e985e7973872af3067a7 Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Mon, 19 Oct 2020 18:00:00 +0530 Subject: [PATCH] feat: Fixed commands (removed giphy hardcode) --- lib/src/message_input.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/message_input.dart b/lib/src/message_input.dart index b614fbb9..191da65f 100644 --- a/lib/src/message_input.dart +++ b/lib/src/message_input.dart @@ -521,6 +521,7 @@ class MessageInputState extends State { void _setCommand(Command c) { setState(() { chosenCommand = c; + _commandEnabled = true; }); _commandsOverlay?.remove(); _commandsOverlay = null; @@ -940,7 +941,7 @@ class MessageInputState extends State { } if(_commandEnabled) { - text = '/${chosenCommand.args} ' + text; + text = '/${chosenCommand.name} ' + text; } final attachments = List<_SendingAttachment>.from(_attachments);