chat: Give chatNewMessage hook access to the raw message object

This commit is contained in:
Richard Hansen 2021-10-26 21:58:34 -04:00
parent fc5a3f553d
commit 2597b940f4
4 changed files with 30 additions and 1 deletions

View file

@ -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: (() => {