From 0ac8c087a28b3ccc73f8eea5941e4902e33c494e Mon Sep 17 00:00:00 2001 From: Evan Goode Date: Sun, 17 Dec 2023 11:57:34 -0500 Subject: [PATCH] chat: Only sign command args when profile keys defined (#1257) --- src/client/chat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/chat.js b/src/client/chat.js index 5674f1f1..e4a94667 100644 --- a/src/client/chat.js +++ b/src/client/chat.js @@ -371,7 +371,7 @@ module.exports = function (client, options) { command, timestamp: options.timestamp, salt: options.salt, - argumentSignatures: signaturesForCommand(command, options.timestamp, options.salt, options.preview, acknowledgements), + argumentSignatures: client.profileKeys ? signaturesForCommand(command, options.timestamp, options.salt, options.preview, acknowledgements) : [], messageCount: client._lastSeenMessages.pending, acknowledged }) @@ -381,7 +381,7 @@ module.exports = function (client, options) { command, timestamp: options.timestamp, salt: options.salt, - argumentSignatures: signaturesForCommand(command, options.timestamp, options.salt), + argumentSignatures: client.profileKeys ? signaturesForCommand(command, options.timestamp, options.salt) : [], signedPreview: options.didPreview, previousMessages: client._lastSeenMessages.map((e) => ({ messageSender: e.sender,