Fix non-chat empty messages

Only refuse to send empty message data to the server if it is chat
data.  All other data types can be sent with an empty message (eg,
ping).
This commit is contained in:
Zorchenhimer 2019-03-23 18:10:32 -04:00
parent 07589e7099
commit b4ae3fa9f8
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ func recieve(v []js.Value) {
}
func websocketSend(msg string, dataType common.ClientDataType) error {
if strings.TrimSpace(msg) == "" {
if strings.TrimSpace(msg) == "" && dataType == common.CdMessage {
return nil
}