mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
fix: #8206 first message in chat has false newSet
This commit is contained in:
@@ -101,6 +101,8 @@ module.exports = function (Messaging) {
|
|||||||
} else if (index > 0 && message.fromuid !== messages[index - 1].fromuid) {
|
} 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
|
// If the previous message was from the other person, this is also a new set
|
||||||
message.newSet = true;
|
message.newSet = true;
|
||||||
|
} else if (index === 0) {
|
||||||
|
message.newSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return message;
|
return message;
|
||||||
|
|||||||
Reference in New Issue
Block a user