PadMessageHandler: Delete unnecessary protocolVersion

We can assume that the client code is always in sync with what the
server expects.
This commit is contained in:
Richard Hansen 2021-10-30 00:34:15 -04:00
parent ce730b0493
commit d36a37d666
5 changed files with 0 additions and 20 deletions

View file

@ -813,17 +813,6 @@ const handleClientReady = async (socket, message, authorID) => {
return;
}
if (!message.protocolVersion) {
messageLogger.warn('Dropped message, CLIENT_READY Message has no protocolVersion!');
return;
}
if (message.protocolVersion !== 2) {
messageLogger.warn('Dropped message, CLIENT_READY Message has a unknown protocolVersion ' +
`'${message.protocolVersion}'!`);
return;
}
await hooks.aCallAll('clientReady', message);
// Get ro/rw id:s