feat: Fixed commands (removed giphy hardcode)
This commit is contained in:
@@ -521,6 +521,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
void _setCommand(Command c) {
|
void _setCommand(Command c) {
|
||||||
setState(() {
|
setState(() {
|
||||||
chosenCommand = c;
|
chosenCommand = c;
|
||||||
|
_commandEnabled = true;
|
||||||
});
|
});
|
||||||
_commandsOverlay?.remove();
|
_commandsOverlay?.remove();
|
||||||
_commandsOverlay = null;
|
_commandsOverlay = null;
|
||||||
@@ -940,7 +941,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(_commandEnabled) {
|
if(_commandEnabled) {
|
||||||
text = '/${chosenCommand.args} ' + text;
|
text = '/${chosenCommand.name} ' + text;
|
||||||
}
|
}
|
||||||
|
|
||||||
final attachments = List<_SendingAttachment>.from(_attachments);
|
final attachments = List<_SendingAttachment>.from(_attachments);
|
||||||
|
|||||||
Reference in New Issue
Block a user