From 56baddc9480bb5c9ed43d6d9f777f7497cf0602b Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Sat, 8 Oct 2022 23:02:11 +0200 Subject: [PATCH] Make groupAction take an arbitrary parameter. --- static/protocol.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/static/protocol.js b/static/protocol.js index d9e6127..ab4604b 100644 --- a/static/protocol.js +++ b/static/protocol.js @@ -712,16 +712,15 @@ ServerConnection.prototype.userMessage = function(kind, dest, value, noecho) { * groupAction sends a request to act on the current group. * * @param {string} kind - * - One of 'clearchat', 'lock', 'unlock', 'record' or 'unrecord'. - * @param {string} [message] - An optional user-readable message. + * @param {any} [data] */ -ServerConnection.prototype.groupAction = function(kind, message) { +ServerConnection.prototype.groupAction = function(kind, data) { this.send({ type: 'groupaction', source: this.id, kind: kind, username: this.username, - value: message, + value: data, }); };