mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
Fix API call appendChatMessage to send new message to all connected clients
This commit is contained in:
parent
02c022aab1
commit
94cb743ca8
2 changed files with 23 additions and 8 deletions
|
@ -375,6 +375,17 @@ function handleChatMessage(client, message)
|
|||
var text = message.data.text;
|
||||
var padId = sessioninfos[client.id].padId;
|
||||
|
||||
exports.sendChatMessageToPadClients(time, userId, text, padId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a chat message to all clients of this pad
|
||||
* @param time the timestamp of the chat message
|
||||
* @param userId the author id of the chat message
|
||||
* @param text the text of the chat message
|
||||
* @param padId the padId to send the chat message to
|
||||
*/
|
||||
exports.sendChatMessageToPadClients = function (time, userId, text, padId) {
|
||||
var pad;
|
||||
var userName;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue