stream-chat-angular 4.41.0 → 4.42.0

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.
@@ -161,6 +161,10 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
161
161
  * You can override the default image delete request - override this if you use your own CDN
162
162
  */
163
163
  customImageDeleteRequest?: (url: string, channel: Channel<T>) => Promise<void>;
164
+ /**
165
+ * The provided method will be called before deleting a message. If the returned Promise resolves to `true` to deletion will go ahead. If `false` is returned, the message won't be deleted.
166
+ */
167
+ messageDeleteConfirmationHandler?: (message: StreamMessage<T>) => Promise<boolean>;
164
168
  private channelsSubject;
165
169
  private activeChannelSubject;
166
170
  private activeChannelMessagesSubject;
@@ -320,7 +324,9 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
320
324
  reply_count?: number | undefined;
321
325
  shadowed?: boolean | undefined;
322
326
  status?: string | undefined;
323
- thread_participants?: UserResponse<T>[] | undefined;
327
+ thread_participants?: UserResponse<T>[] | undefined; /**
328
+ * If set to false, read events won't be sent as new messages are received. If set to true active channel (if any) will immediately be marked as read.
329
+ */
324
330
  updated_at?: string | undefined;
325
331
  } & {
326
332
  quoted_message?: import("stream-chat").MessageResponseBase<T> | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.41.0",
3
+ "version": "4.42.0",
4
4
  "description": "Angular components to create chat conversations or livestream style chat",
5
5
  "author": "GetStream",
6
6
  "homepage": "https://getstream.io/chat/",
@@ -1 +1 @@
1
- export const version = '4.41.0';
1
+ export const version = '4.42.0';