db/API.js: reuse the already required padMessageHandler (1 of 2)
Commit 94cb743ca8
("Fix API call appendChatMessage to send new message to all
connected clients") fixed a bug, but introduced a redundant require().
pull/3572/head
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…
Reference in New Issue