@pazznetwork/ngx-chat
Version:
[](https://travis-ci.com/pazznetwork/ngx-chat) [](https://coveralls.io/github/pazzn
19 lines (18 loc) • 776 B
TypeScript
import { BehaviorSubject, Subject } from 'rxjs';
import { Recipient } from '../core/recipient';
import * as i0 from "@angular/core";
/**
* Used to determine if a message component for a given recipient is open.
*/
export declare class ChatMessageListRegistryService {
openChats$: BehaviorSubject<Set<Recipient>>;
chatOpened$: Subject<Recipient>;
private recipientToOpenMessageListCount;
constructor();
isChatOpen(recipient: Recipient): boolean;
incrementOpenWindowCount(recipient: Recipient): void;
decrementOpenWindowCount(recipient: Recipient): void;
private getOrDefault;
static ɵfac: i0.ɵɵFactoryDeclaration<ChatMessageListRegistryService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ChatMessageListRegistryService>;
}