stream-chat-react-native-core 5.12.0-beta.1 → 5.12.0-beta.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.
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "5.12.0-beta.1"
2
+ "version": "5.12.0-beta.2"
3
3
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stream-chat-react-native-core",
3
3
  "description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
4
- "version": "5.12.0-beta.1",
4
+ "version": "5.12.0-beta.2",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -640,7 +640,10 @@ const ChannelWithContext = <
640
640
  }, [threadPropsExists]);
641
641
 
642
642
  const handleAppBackground = useCallback(() => {
643
- if (channel) {
643
+ const channelData = channel.data as
644
+ | Extract<typeof channel.data, { own_capabilities: string[] }>
645
+ | undefined;
646
+ if (channelData?.own_capabilities?.includes('send-typing-events')) {
644
647
  channel.sendEvent({
645
648
  parent_id: thread?.id,
646
649
  type: 'typing.stop',
package/src/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "5.12.0-beta.1"
2
+ "version": "5.12.0-beta.2"
3
3
  }