Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/components/MessagesList/MessagesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export default {
return false // No previous message
}

if (message1.actorType === ATTENDEE.ACTOR_TYPE_BOTS // Don't group messages of commands and bots
if (message1.actorType === ATTENDEE.ACTOR_TYPE.BOTS // Don't group messages of commands and bots
&& message1.actorId !== ATTENDEE.CHANGELOG_BOT_ID) { // Apart from the changelog bot
return false
}
Expand All @@ -371,7 +371,13 @@ export default {
return false
}

return !this.messagesHaveDifferentDate(message1, message2) // Posted on the same day
if (this.messagesHaveDifferentDate(message1, message2)) {
// Not posted on the same day
return false
}

// Only group messages within a short period of time, so unrelated messages are not grouped together
return (this.getDateOfMessage(message1).format('X') - this.getDateOfMessage(message2).format('X')) < 300
},

/**
Expand Down