fix: #8206 first message in chat has false `newSet`

v1.18.x
Julian Lam 5 years ago
parent 5aa76cdf2f
commit 93acd13999

@ -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;

Loading…
Cancel
Save