@linktr.ee/messaging-react 1.24.4-rc-1773546789 → 1.24.4

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
@@ -1,5 +1,6 @@
1
1
  import { Channel } from 'stream-chat';
2
2
  import { ChannelFilters } from 'stream-chat';
3
+ import { ChannelListProps as ChannelListProps_2 } from 'stream-chat-react';
3
4
  import { ChannelSort } from 'stream-chat';
4
5
  import { default as default_2 } from 'react';
5
6
  import { EmptyStateIndicatorProps } from 'stream-chat-react';
@@ -61,6 +62,18 @@ export declare interface ChannelListProps {
61
62
  * ChannelList consumers.
62
63
  */
63
64
  allowNewMessagesFromUnfilteredChannels?: boolean;
65
+ /**
66
+ * Advanced override for handling `notification.message_new` events.
67
+ * Use for filtered/product-defined views that need to verify whether a
68
+ * channel belongs in the current list before inserting it.
69
+ */
70
+ onMessageNew?: ChannelListProps_2['onMessageNew'];
71
+ /**
72
+ * Advanced override for handling `notification.added_to_channel` events.
73
+ * Use for filtered/product-defined views that need to verify whether a
74
+ * channel belongs in the current list before inserting it.
75
+ */
76
+ onAddedToChannel?: ChannelListProps_2['onAddedToChannel'];
64
77
  /**
65
78
  * Sort order for the channel list query.
66
79
  * Defaults to `{ last_message_at: -1 }` (most recent first).