Skip to content

feat: add skip_enrich_url to message send and update requests - #294

Merged
adityaalifn merged 1 commit into
mainfrom
feature/skip-enrich-url
Nov 25, 2026
Merged

adityaalifn merged 1 commit into
mainfrom
feature/skip-enrich-url

Conversation

@adityaalifn

@adityaalifn adityaalifn commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

CLA

  • I have signed the Stream CLA (required).
  • The code changes follow best practices
  • Code changes are tested (add some information if not applicable)

Description of the pull request

The API accepts a top-level skip_enrich_url flag on send message, update message and partial update message. When it is true, the server doesn't add a link preview to that message. The Java SDK had no way to send it.

This adds a nullable skipEnrichUrl builder field to MessageSendRequest, MessageUpdateRequest and MessagePartialUpdateRequest. It is serialized next to message, matching the API.

Message.send("messaging", channelId)
    .message(messageRequest)
    .skipEnrichUrl(true)
    .request();

Tests: MessageSkipEnrichUrlTest checks that each request body carries "skip_enrich_url":true. Ran it and ScheduledMessageTest locally on Corretto 11; both pass.

Open gaps

  • I didn't add an integration test against a live app that checks the message comes back without a preview attachment.

🤖 Generated with Claude Code

https://claude.ai/code/session_015WLTK6efBFpF3RCYeuRCfg


Note

Low Risk
Additive optional JSON field on message request builders with unit tests; no auth or breaking API changes.

Overview
Adds nullable skipEnrichUrl builder support on message send, update, and partial update requests so the Java SDK can send the API’s top-level skip_enrich_url flag (same shape as existing flags like skip_push). When set to true, the server is asked not to attach a link preview for that operation.

MessageSkipEnrichUrlTest asserts the serialized request bodies include "skip_enrich_url":true for all three flows.

Reviewed by Cursor Bugbot for commit 0a8669c. Bugbot is set up for automated code reviews on this repo. Configure here.

@adityaalifn
adityaalifn merged commit 181ebf0 into main Nov 25, 2026
6 checks passed
@adityaalifn
adityaalifn deleted the feature/skip-enrich-url branch November 25, 2026 12:48
@adityaalifn adityaalifn mentioned this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants