Skip to content

Commit

Permalink
Merge pull request RocketChat#828 from WideChat/ear_abandonment_fix
Browse files Browse the repository at this point in the history
visitor abandonment fix
  • Loading branch information
ear-dev authored Jul 13, 2021
2 parents 710c5de + b75c483 commit 03daffa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ callbacks.add('afterSaveMessage', function(message, room) {
setPredictedVisitorAbandonmentTime(room);
}
return message;
}, callbacks.priority.HIGH, 'save-visitor-inactivity');
}, callbacks.priority.MEDIUM, 'save-visitor-inactivity'); // This hook priority should always be less than the priority of hook "save-last-visitor-message-timestamp" bcs, the room.v.lastMessage property set there is being used here for determinting visitor abandonment

0 comments on commit 03daffa

Please sign in to comment.