Skip to content

Commit

Permalink
refactored the code from line 83-93 in the filesrc/messaging/data.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jdufitum committed Sep 19, 2024
1 parent 566df77 commit 861ba36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/messaging/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ module.exports = function (Messaging) {
// Also check if the previous message was a new set, in which case we don't add a spacer
// Also check if the previous message was a system message, in which case we don't add a spacer
// Also check if the previous message was a new set, in which case we don't add a spacer
if (message.timestamp > messages[index - 1].timestamp + Messaging.newMessageCutoff() ||
if (message.timestamp > messages[index - 1].timestamp + Messaging.newMessageCutoff ||
message.fromUid !== messages[index - 1].fromUid ||
messages[index - 1].system) {
message.newSet = true;
Expand Down

0 comments on commit 861ba36

Please sign in to comment.