Skip to content

warnings: Remove ContextMessageReference when context message is deleted - #362

Merged
FloatingMilkshake merged 1 commit into
mainfrom
milkshake/fix-warning-context-msg-errors
Jul 5, 2026
Merged

warnings: Remove ContextMessageReference when context message is deleted#362
FloatingMilkshake merged 1 commit into
mainfrom
milkshake/fix-warning-context-msg-errors

Conversation

@FloatingMilkshake

Copy link
Copy Markdown
Collaborator

Take 2: Fixes #359

If the context message for a warning is deleted (regular delete or bulk delete), the warning's ContextMessageReference is set to null to prevent errors if the warning is later edited or deleted

Should no longer throw NREs when uncached messages are deleted.

@github-project-automation github-project-automation Bot moved this to Approved, awaiting merge in Cliptok todo Jul 5, 2026
@FloatingMilkshake
FloatingMilkshake merged commit f66b457 into main Jul 5, 2026
2 checks passed
@FloatingMilkshake
FloatingMilkshake deleted the milkshake/fix-warning-context-msg-errors branch July 5, 2026 16:43
@github-project-automation github-project-automation Bot moved this from Approved, awaiting merge to Done in Cliptok todo Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Todo: Avoid causing/logging an error when deleting a warning whose context message is missing

2 participants