Skip to content

Extract threading suffixes to constant#532

Merged
corinagum merged 1 commit into
mainfrom
cg/threading-suffixes-const
Apr 20, 2026
Merged

Extract threading suffixes to constant#532
corinagum merged 1 commit into
mainfrom
cg/threading-suffixes-const

Conversation

@corinagum

Copy link
Copy Markdown
Collaborator

Summary

  • Extract @thread.tacv2, @thread.skype, @unq.gbl.spaces suffixes into a THREADING_SUFFIXES constant in thread.ts
  • supportsThreading() now uses THREADING_SUFFIXES.some() instead of chained endsWith() calls
  • Matches the pattern used in the Python SDK (per PR review feedback)

Test plan

  • All 14 thread utility tests pass
  • Build succeeds

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings April 20, 2026 16:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the Teams threading utility to centralize the list of conversation ID suffixes that support threading, making the logic easier to maintain and aligning it with the pattern used in the Python SDK.

Changes:

  • Extracted thread-capable conversation ID suffixes into a THREADING_SUFFIXES constant.
  • Updated supportsThreading() to use THREADING_SUFFIXES.some(...) instead of chained endsWith() checks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@corinagum
corinagum merged commit f613249 into main Apr 20, 2026
11 checks passed
@corinagum
corinagum deleted the cg/threading-suffixes-const branch April 20, 2026 16:24
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.

3 participants