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.
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +29 -17
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel.service.js +27 -11
- package/esm2015/lib/message-list/message-list.component.js +5 -9
- package/fesm2015/stream-chat-angular.js +31 -19
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/channel.service.d.ts +17 -0
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
package/lib/channel.service.d.ts
CHANGED
|
@@ -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
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.39.
|
|
1
|
+
export const version = '4.39.3';
|