|
|
|
@ -284,7 +284,8 @@ InputBar::updateTextContentProperties(const QString &t) |
|
|
|
|
QStringLiteral("goto"), |
|
|
|
|
QStringLiteral("converttodm"), |
|
|
|
|
QStringLiteral("converttoroom")}; |
|
|
|
|
bool hasInvalidCommand = !commandName.isNull() && '/' + commandName != text() && !validCommands.contains(commandName); |
|
|
|
|
bool hasInvalidCommand = |
|
|
|
|
!commandName.isNull() && '/' + commandName != text() && !validCommands.contains(commandName); |
|
|
|
|
|
|
|
|
|
bool signalsChanged{false}; |
|
|
|
|
if (containsInvalidCommand_ != hasInvalidCommand) { |
|
|
|
@ -393,8 +394,7 @@ InputBar::send() |
|
|
|
|
|
|
|
|
|
if (auto [commandName, args] = getCommandAndArgs(); commandName.isEmpty()) |
|
|
|
|
message(text()); |
|
|
|
|
else |
|
|
|
|
if (!command(commandName, args)) |
|
|
|
|
else if (!command(commandName, args)) |
|
|
|
|
message(text()); |
|
|
|
|
|
|
|
|
|
if (!wasEdit) { |
|
|
|
|