mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-12-03 16:31:28 +01:00
db/API.js: reuse the already required padMessageHandler (1 of 2)
Commit 94cb743ca8a7 ("Fix API call appendChatMessage to send new message to all
connected clients") fixed a bug, but introduced a redundant require().
This commit is contained in:
parent
10172af199
commit
72260b86de
@ -525,9 +525,8 @@ exports.appendChatMessage = function(padID, text, authorID, time, callback)
|
||||
time = Date.now();
|
||||
}
|
||||
|
||||
var padMessage = require("ep_etherpad-lite/node/handler/PadMessageHandler.js");
|
||||
// save chat message to database and send message to all connected clients
|
||||
padMessage.sendChatMessageToPadClients(time, authorID, text, padID);
|
||||
padMessageHandler.sendChatMessageToPadClients(time, authorID, text, padID);
|
||||
|
||||
callback();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user