feat: Fixed commands (removed giphy hardcode)

This commit is contained in:
Deven Joshi
2020-10-19 18:00:00 +05:30
parent e3992358b1
commit 806f176ee3
+2 -1
View File
@@ -521,6 +521,7 @@ class MessageInputState extends State<MessageInput> {
void _setCommand(Command c) {
setState(() {
chosenCommand = c;
_commandEnabled = true;
});
_commandsOverlay?.remove();
_commandsOverlay = null;
@@ -940,7 +941,7 @@ class MessageInputState extends State<MessageInput> {
}
if(_commandEnabled) {
text = '/${chosenCommand.args} ' + text;
text = '/${chosenCommand.name} ' + text;
}
final attachments = List<_SendingAttachment>.from(_attachments);