Node.js based forum software built for the modern web
fix: #8206 first message in chat has false `newSet`
Julian Lam93acd1399973
diff --git a/src/messaging/data.js b/src/messaging/data.jsindex 21ea1e7d17..4043752be4 100644--- a/src/messaging/data.js+++ b/src/messaging/data.js@@ -101,6 +101,8 @@ module.exports = function (Messaging) {} else if (index > 0 && message.fromuid !== messages[index - 1].fromuid) {// If the previous message was from the other person, this is also a new setmessage.newSet = true;+ } else if (index === 0) {+ message.newSet = true;}return message;