mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
PadMessageHandler: Delete unnecessary CLIENT_READY checks
The checks are already performed by the security manager.
This commit is contained in:
parent
0992f19570
commit
10e930408c
1 changed files with 0 additions and 11 deletions
|
@ -802,17 +802,6 @@ const _correctMarkersInPad = (atext, apool) => {
|
|||
* @param message the message from the client
|
||||
*/
|
||||
const handleClientReady = async (socket, message, authorID) => {
|
||||
// check if all ok
|
||||
if (!message.token) {
|
||||
messageLogger.warn('Dropped message, CLIENT_READY Message has no token!');
|
||||
return;
|
||||
}
|
||||
|
||||
if (!message.padId) {
|
||||
messageLogger.warn('Dropped message, CLIENT_READY Message has no padId!');
|
||||
return;
|
||||
}
|
||||
|
||||
await hooks.aCallAll('clientReady', message);
|
||||
|
||||
// Get ro/rw id:s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue