stream-chat 9.42.0 → 9.42.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.
@@ -3269,7 +3269,7 @@ export type PromoteChannelParams = {
3269
3269
  * is used to resolve the user agent.
3270
3270
  */
3271
3271
  export type SdkIdentifier = {
3272
- name: 'react' | 'react-native' | 'expo' | 'angular';
3272
+ name: 'react' | 'react-native-ios' | 'react-native-android' | 'expo-ios' | 'expo-android' | 'angular';
3273
3273
  version: string;
3274
3274
  };
3275
3275
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat",
3
- "version": "9.42.0",
3
+ "version": "9.42.2",
4
4
  "description": "JS SDK for the Stream Chat API",
5
5
  "homepage": "https://getstream.io/chat/",
6
6
  "author": {
@@ -325,15 +325,6 @@ export class MessageComposer extends WithSubscriptions {
325
325
  }
326
326
 
327
327
  get hasSendableData() {
328
- // If the offline mode is enabled, we allow sending a message if the composition is not empty.
329
- if (this.client.offlineDb) {
330
- return (
331
- !this.textComposer.textIsEmpty ||
332
- !!this.attachmentManager.attachments.length ||
333
- !!this.pollId ||
334
- !!this.locationComposer.validLocation
335
- );
336
- }
337
328
  return !!(
338
329
  (!this.attachmentManager.uploadsInProgressCount &&
339
330
  (!this.textComposer.textIsEmpty ||
package/src/types.ts CHANGED
@@ -4388,7 +4388,13 @@ export type PromoteChannelParams = {
4388
4388
  * is used to resolve the user agent.
4389
4389
  */
4390
4390
  export type SdkIdentifier = {
4391
- name: 'react' | 'react-native' | 'expo' | 'angular';
4391
+ name:
4392
+ | 'react'
4393
+ | 'react-native-ios'
4394
+ | 'react-native-android'
4395
+ | 'expo-ios'
4396
+ | 'expo-android'
4397
+ | 'angular';
4392
4398
  version: string;
4393
4399
  };
4394
4400