mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
feat: #8204, separate notification type for group chats
This commit is contained in:
@@ -57,8 +57,9 @@ module.exports = function (Messaging) {
|
||||
return;
|
||||
}
|
||||
|
||||
const isGroupChat = await Messaging.isGroupChat(roomId);
|
||||
const notification = await notifications.create({
|
||||
type: 'new-chat',
|
||||
type: isGroupChat ? 'new-group-chat' : 'new-chat',
|
||||
subject: '[[email:notif.chat.subject, ' + messageObj.fromUser.username + ']]',
|
||||
bodyShort: '[[notifications:new_message_from, ' + messageObj.fromUser.username + ']]',
|
||||
bodyLong: messageObj.content,
|
||||
|
||||
Reference in New Issue
Block a user