fix: #9292, messageobj.content already parsed

This commit is contained in:
Barış Soner Uşaklı
2021-02-11 12:55:00 -05:00
parent 4b2bf12fd1
commit c953b1b3d1
2 changed files with 19 additions and 20 deletions

View File

@@ -62,7 +62,7 @@ module.exports = function (Messaging) {
type: isGroupChat ? 'new-group-chat' : 'new-chat',
subject: `[[email:notif.chat.subject, ${messageObj.fromUser.username}]]`,
bodyShort: `[[notifications:new_message_from, ${messageObj.fromUser.username}]]`,
bodyLong: await plugins.hooks.fire('filter:parse.raw', messageObj.content),
bodyLong: messageObj.content,
nid: `chat_${fromuid}_${roomId}`,
from: fromuid,
path: `/chats/${messageObj.roomId}`,