stream-chat-angular 4.68.1 → 4.68.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.
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ChangeDetectorRef, NgZone, OnChanges, OnInit, SimpleChanges } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { Channel, User } from 'stream-chat';
3
3
  import { ChatClientService } from '../chat-client.service';
4
4
  import { AvatarLocation, AvatarType, DefaultStreamChatGenerics } from '../types';
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
6
6
  /**
7
7
  * The `Avatar` component displays the provided image, with fallback to the first letter of the optional name input.
8
8
  */
9
- export declare class AvatarComponent implements OnChanges, OnInit, OnChanges, AfterViewInit {
9
+ export declare class AvatarComponent implements OnChanges, OnInit, OnChanges, AfterViewInit, OnDestroy {
10
10
  private chatClientService;
11
11
  private ngZone;
12
12
  private cdRef;
@@ -57,6 +57,7 @@ export declare class AvatarComponent implements OnChanges, OnInit, OnChanges, Af
57
57
  constructor(chatClientService: ChatClientService, ngZone: NgZone, cdRef: ChangeDetectorRef);
58
58
  ngOnInit(): void;
59
59
  ngOnChanges(changes: SimpleChanges): void;
60
+ ngOnDestroy(): void;
60
61
  private setFallbackChannelImage;
61
62
  private setInitials;
62
63
  private updateIsOnlineSubscription;
@@ -235,6 +235,9 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
235
235
  private dismissErrorNotification?;
236
236
  private nextPageConfiguration?;
237
237
  private areReadEventsPaused;
238
+ private markReadThrottleTime;
239
+ private markReadTimeout?;
240
+ private scheduledMarkReadRequest?;
238
241
  constructor(chatClientService: ChatClientService<T>, ngZone: NgZone, notificationService: NotificationService);
239
242
  /**
240
243
  * internal
@@ -523,6 +526,8 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
523
526
  private updateLatestMessages;
524
527
  private setChannelState;
525
528
  private markRead;
529
+ private markReadThrottled;
530
+ private flushMarkReadQueue;
526
531
  private setNextPageConfiguration;
527
532
  static ɵfac: i0.ɵɵFactoryDeclaration<ChannelService<any>, never>;
528
533
  static ɵprov: i0.ɵɵInjectableDeclaration<ChannelService<any>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.68.1",
3
+ "version": "4.68.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.68.1';
1
+ export const version = '4.68.3';