Move pin notification messages deletion to event listener#74
Merged
BenHall-1 merged 9 commits intoTicketsBot-cloud:masterfrom Mar 1, 2026
Merged
Move pin notification messages deletion to event listener#74BenHall-1 merged 9 commits intoTicketsBot-cloud:masterfrom
BenHall-1 merged 9 commits intoTicketsBot-cloud:masterfrom
Conversation
Moves logic for deleting system pin notification messages from ticket opening to the message listener, ensuring pin notifications are automatically deleted in ticket channels. This simplifies the ticket opening process and centralizes pin notification cleanup.
Replaces the generic bot author check with a specific comparison to the bot's ID when deleting pin notification messages in ticket channels. This ensures only messages from the current bot instance are considered for deletion.
BenHall-1
approved these changes
Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Moves logic for deleting system pin notification messages from ticket opening to the message listener, ensuring pin notifications are automatically deleted in ticket channels. This simplifies the ticket opening process and centralizes pin notification cleanup.
Type of Change
Testing
Be sure kafka works (this is to insure the event listener is being triggered)
Open a ticket, the notification should be deleted almost instantly
Checklist