stream-chat-angular 4.39.1 → 4.39.3

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.
@@ -101,6 +101,10 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
101
101
  latestMessageDateByUserByChannels$: Observable<{
102
102
  [key: string]: Date;
103
103
  }>;
104
+ /**
105
+ * The last read message id of the active channel, it's only set once, when a new active channel is set. It's used by the message list to jump to the latest read message
106
+ */
107
+ activeChannelLastReadMessageId?: string;
104
108
  /**
105
109
  * Custom event handler to call if a new message received from a channel that is not being watched, provide an event handler if you want to override the [default channel list ordering](./ChannelService.mdx/#channels)
106
110
  */
@@ -309,6 +313,12 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
309
313
  reaction_counts?: {
310
314
  [key: string]: number;
311
315
  } | null | undefined;
316
+ /**
317
+ * Sets the given `channel` as active and marks it as read.
318
+ * If the channel wasn't previously part of the channel, it will be added to the beginning of the list.
319
+ *
320
+ * @param channel
321
+ */
312
322
  reaction_scores?: {
313
323
  [key: string]: number;
314
324
  } | null | undefined;
@@ -372,6 +382,12 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
372
382
  reaction_counts?: {
373
383
  [key: string]: number;
374
384
  } | null | undefined;
385
+ /**
386
+ * Sets the given `channel` as active and marks it as read.
387
+ * If the channel wasn't previously part of the channel, it will be added to the beginning of the list.
388
+ *
389
+ * @param channel
390
+ */
375
391
  reaction_scores?: {
376
392
  [key: string]: number;
377
393
  } | null | undefined;
@@ -484,6 +500,7 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
484
500
  private handleTypingStopEvent;
485
501
  private updateLatestMessages;
486
502
  private setChannelState;
503
+ private markRead;
487
504
  static ɵfac: i0.ɵɵFactoryDeclaration<ChannelService<any>, never>;
488
505
  static ɵprov: i0.ɵɵInjectableDeclaration<ChannelService<any>>;
489
506
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.39.1",
3
+ "version": "4.39.3",
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.39.1';
1
+ export const version = '4.39.3';