mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 14:47:12 -04:00
handler/PadMessageHandler: add stub for unimplemented MESSAGE type padoptions
This commit is contained in:
parent
4fe4afe1b3
commit
9c126674b3
1 changed files with 14 additions and 3 deletions
|
@ -186,10 +186,21 @@ exports.handleMessage = function(client, message)
|
||||||
handleChatMessage(client, message);
|
handleChatMessage(client, message);
|
||||||
}
|
}
|
||||||
else if(message.type == "COLLABROOM" &&
|
else if(message.type == "COLLABROOM" &&
|
||||||
message.data.type == "CLIENT_MESSAGE" &&
|
message.data.type == "CLIENT_MESSAGE")
|
||||||
message.data.payload.type == "suggestUserName")
|
|
||||||
{
|
{
|
||||||
handleSuggestUserName(client, message);
|
if(message.data.payload.type == "suggestUserName")
|
||||||
|
{
|
||||||
|
handleSuggestUserName(client, message);
|
||||||
|
}
|
||||||
|
else if (message.data.payload.type == "padoptions")
|
||||||
|
{
|
||||||
|
messageLogger.info("Handler not implemented for payload type: " + message.data.payload.type);
|
||||||
|
//handlePadOptions
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
messageLogger.warn("Dropped COLLABROOM CLIENT_MESSAGE message, unknown Message Type " + message.type);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//if the message type is unknown, throw an exception
|
//if the message type is unknown, throw an exception
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue