Check for missing payload on CLIENT_MESSAGE
parent
f2742c5b63
commit
7e48e025c7
|
@ -210,6 +210,7 @@ exports.handleMessage = function(client, message)
|
||||||
} else if (message.data.type == "SAVE_REVISION") {
|
} else if (message.data.type == "SAVE_REVISION") {
|
||||||
handleSaveRevisionMessage(client, message);
|
handleSaveRevisionMessage(client, message);
|
||||||
} else if (message.data.type == "CLIENT_MESSAGE" &&
|
} else if (message.data.type == "CLIENT_MESSAGE" &&
|
||||||
|
message.data.payload != null &&
|
||||||
message.data.payload.type == "suggestUserName") {
|
message.data.payload.type == "suggestUserName") {
|
||||||
handleSuggestUserName(client, message);
|
handleSuggestUserName(client, message);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue