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:
		
							parent
							
								
									d9e69cca06
								
							
						
					
					
						commit
						bcbe9a8a67
					
				@ -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); });
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user