Skip to content

Remove with_reply_to_id method#385

Merged
corinagum merged 1 commit intomainfrom
cg/remove-reply-to-id
Apr 13, 2026
Merged

Remove with_reply_to_id method#385
corinagum merged 1 commit intomainfrom
cg/remove-reply-to-id

Conversation

@corinagum
Copy link
Copy Markdown
Contributor

  • Remove with_reply_to_id() method

reply_to_id is a field on the activity that is used by the service, but any changes to it on the bot side are completely ignored. After thorough testing to confirm, this PR removes the misleading method with_reply_to_id; setting replyToId on outgoing activities is a no-op.

Originally part of #321 but separated out due to timing concerns for GA

Copilot AI review requested due to automatic review settings April 13, 2026 17:24
@corinagum corinagum force-pushed the cg/remove-reply-to-id branch from 4a51e3c to 59347d9 Compare April 13, 2026 17:25
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

Note

Copilot was unable to run its full agentic suite in this review.

Removes the with_reply_to_id() fluent builder method from Activity, since reply_to_id on outgoing activities is ignored by the service and the method is misleading.

Changes:

  • Remove Activity.with_reply_to_id() from the model fluent API.
  • Update unit tests to stop setting/asserting reply_to_id via the removed helper.

Reviewed changes

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

File Description
packages/api/src/microsoft_teams/api/models/activity.py Removes the with_reply_to_id() builder method from Activity.
packages/api/tests/unit/test_activity.py Updates the activity builder unit test to no longer use/assert reply_to_id.

Comment thread packages/api/src/microsoft_teams/api/models/activity.py
@corinagum corinagum merged commit 3d46d65 into main Apr 13, 2026
7 checks passed
@corinagum corinagum deleted the cg/remove-reply-to-id branch April 13, 2026 17:44
@heyitsaamir heyitsaamir mentioned this pull request Apr 16, 2026
2 tasks
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