Allow commands not to be signed (#1277)

This commit is contained in:
forester302 2024-01-01 10:24:49 +00:00 committed by GitHub
parent 80d038bd61
commit 21240f8ab2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -371,7 +371,7 @@ module.exports = function (client, options) {
command,
timestamp: options.timestamp,
salt: options.salt,
argumentSignatures: client.profileKeys ? signaturesForCommand(command, options.timestamp, options.salt, options.preview, acknowledgements) : [],
argumentSignatures: (client.profileKeys && client._session) ? signaturesForCommand(command, options.timestamp, options.salt, options.preview, acknowledgements) : [],
messageCount: client._lastSeenMessages.pending,
acknowledged
})