Remove client-side send waiting

This piece of code from another era is not needed anymore thanks
to the message queue and decent server-side anti-flooding. Player
input won't be thrown away since the client waits for an
acknowledgement from the server before clearing the input box.
This commit is contained in:
oldmud0 2021-12-23 17:05:11 -06:00
parent d9e69cca06
commit bcbe9a8a67

View File

@ -1787,9 +1787,6 @@ void Courtroom::on_chat_return_pressed()
if (is_muted) if (is_muted)
return; return;
if (text_state < 2 && objection_state == 0)
return;
ui_ic_chat_message->blockSignals(true); ui_ic_chat_message->blockSignals(true);
QTimer::singleShot(ao_app->get_chat_ratelimit(), this, QTimer::singleShot(ao_app->get_chat_ratelimit(), this,
[=] { ui_ic_chat_message->blockSignals(false); }); [=] { ui_ic_chat_message->blockSignals(false); });