@linktr.ee/messaging-react 3.3.1 → 3.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1411,6 +1411,10 @@ declare module 'stream-chat' {
1411
1411
  * Indicates DM agent has deferred and creator follow-up is needed.
1412
1412
  */
1413
1413
  agent_deferred?: boolean;
1414
+ /**
1415
+ * Whether DM agent auto-replies are paused for this channel.
1416
+ */
1417
+ chatbot_paused?: boolean;
1414
1418
  }
1415
1419
  interface CustomMessageData {
1416
1420
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linktr.ee/messaging-react",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "description": "React messaging components built on messaging-core for web applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -472,9 +472,7 @@ export const ChannelView = React.memo<ChannelViewProps>(
472
472
  message: Parameters<ChannelType['sendMessage']>[0],
473
473
  options?: Parameters<ChannelType['sendMessage']>[1]
474
474
  ) => {
475
- const agentPaused =
476
- (channel.data as { chatbot_paused?: boolean })?.chatbot_paused ===
477
- true
475
+ const agentPaused = channel.data?.chatbot_paused === true
478
476
  const shouldSuppressNotifications = dmAgentEnabled && !agentPaused
479
477
 
480
478
  // Build final message with nested metadata
@@ -64,6 +64,10 @@ declare module 'stream-chat' {
64
64
  * Indicates DM agent has deferred and creator follow-up is needed.
65
65
  */
66
66
  agent_deferred?: boolean
67
+ /**
68
+ * Whether DM agent auto-replies are paused for this channel.
69
+ */
70
+ chatbot_paused?: boolean
67
71
  }
68
72
 
69
73
  interface CustomMessageData {