aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/courtroom.cpp')
-rw-r--r--src/courtroom.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index cdc2d9e..bbac24c 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -2321,6 +2321,8 @@ void Courtroom::on_chat_return_pressed()
}
ao_app->send_server_packet(AOPacket("MS", packet_contents));
+ // Move it here instead of comparing the sender of incoming IC messages.
+ reset_ui();
}
void Courtroom::reset_ui()
@@ -2412,12 +2414,6 @@ void Courtroom::chatmessage_enqueue(QStringList p_contents)
p_contents[MESSAGE] = "";
}
- // If we determine we sent this message
- if (sender)
- {
- // Reset input UI elements, clear input box, etc.
- reset_ui();
- }
// If we determine we sent this message, or we have desync enabled
if (sender || Options::getInstance().desynchronisedLogsEnabled())
{