fix(mattermost): prevent DM replies from creating threads#72305
fix(mattermost): prevent DM replies from creating threads#72305vincentkoc wants to merge 1 commit intomainfrom
Conversation
Greptile SummaryThis PR suppresses Confidence Score: 4/5Safe to merge; the fix is narrow and well-tested with one minor inconsistency in the draft-preview helper that does not reintroduce the original bug. Only P2 findings present. The fix is correct at all three delivery call sites. The sole concern is canFinalizeMattermostPreviewInPlace not forwarding kind, which means the DM guard is bypassed in the draft-preview finalization decision — but neither branch of that decision reintroduces the root_id threading bug. extensions/mattermost/src/mattermost/monitor.ts — specifically canFinalizeMattermostPreviewInPlace around line 253.
|
1930e38 to
8afe709
Compare
|
Thanks @vincentkoc for carrying this replacement path. I am closing this as superseded by #72659 because #72659 landed the same narrow Mattermost DM reply-root fix with the repair work and green validation: direct-message replies no longer send a Mattermost root_id that creates a thread, while non-DM thread replies keep the correct thread root. Contributor credit and source PR context were preserved in #72659. If this branch has a different reproduction path that still fails after #72659, please reply and we can reopen or split it back out. |
Summary
Credit
This carries forward the useful fix path from @jwchmodx in #60115, with related context from #59758, #59981, #59791, #55186, and #57565.
Validation
ProjectClownfish replacement details: