mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
Make groupAction take an arbitrary parameter.
This commit is contained in:
parent
1eb7716766
commit
56baddc948
1 changed files with 3 additions and 4 deletions
|
@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue