Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce0203 committed Aug 4, 2023
1 parent 7ec6f78 commit ad79948
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/src/commonMain/kotlin/ui/waitingRoom.kt
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ suspend fun waitingRoom(room: UUID) {
positionX(padding/2)
keys {
down(Key.ENTER) {
sendToServer(ClientPacket.CHAT, text)
text = " "
if (text.trim().isNotEmpty()) {
sendToServer(ClientPacket.CHAT, text)
text = " "
}
}
}
}.zIndex(2)
Expand Down

0 comments on commit ad79948

Please sign in to comment.