mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-26 18:36:14 -04:00
chat: Give chatNewMessage
hook access to the raw message object
This commit is contained in:
parent
fc5a3f553d
commit
2597b940f4
4 changed files with 30 additions and 1 deletions
|
@ -131,6 +131,7 @@ exports.chat = (() => {
|
|||
authorName: msg.userName != null ? msg.userName : html10n.get('pad.userlist.unnamed'),
|
||||
author: msg.userId,
|
||||
text: padutils.escapeHtmlWithClickableLinks(msg.text, '_blank'),
|
||||
message: msg,
|
||||
sticky: false,
|
||||
timestamp: msg.time,
|
||||
timeStr: (() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue