Skip to content

Remove supportsThreading guard from Reply()#434

Merged
corinagum merged 2 commits intomainfrom
cg/remove-threading-guard
Apr 22, 2026
Merged

Remove supportsThreading guard from Reply()#434
corinagum merged 2 commits intomainfrom
cg/remove-threading-guard

Conversation

@corinagum
Copy link
Copy Markdown
Contributor

Summary

  • Remove supportsThreading guard from Reply() 3-arg form -- always calls Conversation.ToThreadedConversationId() when messageId is provided
  • Update test manual example to remove conversation type guard
  • Threading support is now determined by the service, not the SDK

Why: Threading support is expanding (channels, 1:1, group chats). Maintaining an allowlist of conversation ID suffixes creates a maintenance burden and can block developers from using newly supported scopes until the SDK is updated.

Test plan

  • dotnet build: 0 errors
  • dotnet test: 558 passed

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings April 20, 2026 20:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes the SDK-side allowlist/guard for “threading-capable” conversation IDs so that Reply(conversationId, messageId, ...) always constructs a threaded conversation ID and lets the service determine whether threading is supported.

Changes:

  • Removed the supportsThreading fallback in App.Reply() (3-arg/threaded form) and always calls Conversation.ToThreadedConversationId(...).
  • Updated the threading sample (Program.cs + README) to remove the conversation-type guard and reflect the new behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
Samples/Samples.Threading/README.md Updates sample docs to remove the conversation-type guard assumptions and describe service-driven threading behavior.
Samples/Samples.Threading/Program.cs Removes local suffix allowlist check and always constructs a threaded conversation ID for the manual command.
Libraries/Microsoft.Teams.Apps/App.cs Changes Reply(conversationId, messageId, ...) to always build a threaded conversation ID (no fallback).

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

Comment thread Libraries/Microsoft.Teams.Apps/App.cs
Comment thread Samples/Samples.Threading/Program.cs
Comment thread Samples/Samples.Threading/README.md Outdated
Copilot AI review requested due to automatic review settings April 22, 2026 17:38
@corinagum corinagum force-pushed the cg/remove-threading-guard branch from aa502e7 to 12e8610 Compare April 22, 2026 17:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


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

Comment thread Libraries/Microsoft.Teams.Apps/App.cs
@corinagum corinagum merged commit 472f348 into main Apr 22, 2026
11 checks passed
@corinagum corinagum deleted the cg/remove-threading-guard branch April 22, 2026 17:40
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.

4 participants