Skip to content

RM-253: Delete pin notifications using DB lookup#133

Open
biast12 wants to merge 1 commit intomasterfrom
RM-253
Open

RM-253: Delete pin notifications using DB lookup#133
biast12 wants to merge 1 commit intomasterfrom
RM-253

Conversation

@biast12
Copy link
Copy Markdown
Contributor

@biast12 biast12 commented Apr 9, 2026

Description

Handle channel-pinned bot notifications by querying the tickets DB directly instead of the cached getTicket path. This avoids a race where thread message events can be cached as "not a ticket" before SetChannelId commits. If a pinned-message event from the bot is in a ticket channel. The previous getTicket-based check was reorganized and duplicate logic removed.

Type of Change

  • Bug fix
  • New feature
  • Breaking change

Testing

Open a ticket in thread mode
Does the welcome message get deleted? if yes then it works xD

Checklist

  • My code follows the style of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

Handle channel-pinned bot notifications by querying the tickets DB directly instead of the cached getTicket path. This avoids a race where thread message events can be cached as "not a ticket" before SetChannelId commits. If a pinned-message event from the bot is in a ticket channel, the message is deleted inside a Sentry span; errors are reported to Sentry. The previous getTicket-based check was reorganized and duplicate logic removed.
@biast12 biast12 requested a review from a team as a code owner April 9, 2026 20:34
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.

1 participant