Skip to content

Conversation

MartinCupela
Copy link
Contributor

@MartinCupela MartinCupela commented Sep 9, 2025

Goal

Provide:

  1. API for message delivery confirmation
client.syncDeliveredCandidates(collections: Channel[]) // in the future (Channel | Thread)[]
await client.markChannelsDelivered(data?: MarkDeliveredOptions)
  1. service for buffering of delivery confirmation payload (client.deliveryReportCoordinator is handling the buffering and throttling of the requests). See Buffering service section in the spec.

  2. WS event processing for read state updates (message.new, message.read, notification.mark_unread, notification.channel_delivered - name may change)

Closes REACT-501

Spec

See description of CHA-991

Out of scope

The buffering service is prepared to handle delivery confirmation for threads too, but it is disabled for the moment.

Copy link
Contributor

github-actions bot commented Sep 9, 2025

Size Change: +15.5 kB (+4.59%) 🔍

Total Size: 352 kB

Filename Size Change
dist/cjs/index.browser.js 117 kB +5.17 kB (+4.61%) 🔍
dist/cjs/index.node.js 119 kB +5.15 kB (+4.54%) 🔍
dist/esm/index.mjs 117 kB +5.14 kB (+4.61%) 🔍

compressed-size-action

src/client.ts Outdated
async markChannelsDelivered(data?: MarkDeliveredOptions) {
const deliveryReceiptsEnabled =
this.user?.privacy_settings?.delivery_receipts?.enabled;
if (!deliveryReceiptsEnabled) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

we could return some feedback to know that the privacy_setting is missing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't plan it in this PR.

@MartinCupela MartinCupela force-pushed the feat/delivery_receipts branch from 3675474 to eabae00 Compare October 8, 2025 05:16
@MartinCupela MartinCupela merged commit c8a2fe6 into master Oct 9, 2025
6 of 7 checks passed
@MartinCupela MartinCupela deleted the feat/delivery_receipts branch October 9, 2025 10:27
github-actions bot pushed a commit that referenced this pull request Oct 9, 2025
## [9.22.0](v9.21.0...v9.22.0) (2025-10-09)

### Features

* add deleted_for_me field in message response ([#1604](#1604)) ([26e83c4](26e83c4))
* add message delivery receipts ([#1617](#1617)) ([c8a2fe6](c8a2fe6))
@stream-ci-bot
Copy link

🎉 This PR is included in version 9.22.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants