stream-chat
Advanced tools
Comparing version 8.9.0 to 8.10.0
@@ -69,3 +69,4 @@ /// <reference types="node" /> | ||
* @param {boolean} [options.skip_push] Skip sending push notifications | ||
* @param {boolean} [options.is_pending_message] Make this message pending | ||
* @param {boolean} [options.is_pending_message] DEPRECATED, please use `pending` instead. | ||
* @param {boolean} [options.pending] Make this message pending | ||
* @param {Record<string,string>} [options.pending_message_metadata] Metadata for the pending message | ||
@@ -80,2 +81,3 @@ * @param {boolean} [options.force_moderation] Apply force moderation for server-side requests | ||
keep_channel_hidden?: boolean; | ||
pending?: boolean; | ||
pending_message_metadata?: Record<string, string>; | ||
@@ -82,0 +84,0 @@ skip_enrich_url?: boolean; |
{ | ||
"name": "stream-chat", | ||
"version": "8.9.0", | ||
"version": "8.10.0", | ||
"description": "JS SDK for the Stream Chat API", | ||
@@ -5,0 +5,0 @@ "author": "GetStream", |
@@ -348,5 +348,5 @@ import { Channel } from './channel'; | ||
...m, | ||
created_at: m.created_at.toString(), | ||
pinned_at: m.pinned_at?.toString(), | ||
updated_at: m.updated_at?.toString(), | ||
created_at: m.created_at.toISOString(), | ||
pinned_at: m.pinned_at?.toISOString(), | ||
updated_at: m.updated_at?.toISOString(), | ||
} as unknown) as MessageResponse<StreamChatGenerics>); | ||
@@ -353,0 +353,0 @@ |
@@ -164,3 +164,4 @@ import { ChannelState } from './channel_state'; | ||
* @param {boolean} [options.skip_push] Skip sending push notifications | ||
* @param {boolean} [options.is_pending_message] Make this message pending | ||
* @param {boolean} [options.is_pending_message] DEPRECATED, please use `pending` instead. | ||
* @param {boolean} [options.pending] Make this message pending | ||
* @param {Record<string,string>} [options.pending_message_metadata] Metadata for the pending message | ||
@@ -177,2 +178,3 @@ * @param {boolean} [options.force_moderation] Apply force moderation for server-side requests | ||
keep_channel_hidden?: boolean; | ||
pending?: boolean; | ||
pending_message_metadata?: Record<string, string>; | ||
@@ -183,6 +185,2 @@ skip_enrich_url?: boolean; | ||
) { | ||
if (options?.is_pending_message !== undefined && !this._client._isUsingServerAuth()) { | ||
throw new Error('Setting is_pending_message on client side is not supported'); | ||
} | ||
const sendMessageResponse = await this.getClient().post<SendMessageAPIResponse<StreamChatGenerics>>( | ||
@@ -189,0 +187,0 @@ this._channelURL() + '/message', |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4992001
52807