Skip to content

Conversation

@WENKz
Copy link
Contributor

@WENKz WENKz commented Mar 17, 2024

This pull request addresses the issue of redundant event notifications being sent. The added code ensures that the same event is not sent multiple times by checking the last entry in the event log (calls) against the new event data (data). If the last entry matches the new data, the code detects this scenario and prevents the duplicate event from being sent. This enhancement improves the efficiency of event handling and prevents unnecessary notifications from being dispatched.

Changes Made:

Added a conditional check to prevent duplicate event notifications.

@WENKz WENKz changed the title Fix(dispatch) Do not send the same event multiple times Fix(dispatch): Do not send the same event multiple times Mar 17, 2024
@MonkeyWhisper MonkeyWhisper merged commit cca4ff7 into Project-Sloth:main Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants