From bcbe9a8a67356ae4f82a1020afb5c3cfa51ca79d Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Thu, 23 Dec 2021 17:05:11 -0600 Subject: [PATCH] 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. --- src/courtroom.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 8c59f1d..fe92362 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -1787,9 +1787,6 @@ void Courtroom::on_chat_return_pressed() if (is_muted) return; - if (text_state < 2 && objection_state == 0) - return; - ui_ic_chat_message->blockSignals(true); QTimer::singleShot(ao_app->get_chat_ratelimit(), this, [=] { ui_ic_chat_message->blockSignals(false); });