fix: #8206 first message in chat has false newSet

This commit is contained in:
Julian Lam
2020-03-16 21:14:56 -04:00
parent 5aa76cdf2f
commit 93acd13999

View File

@@ -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 set
message.newSet = true;
} else if (index === 0) {
message.newSet = true;
}
return message;