UNPKG

@pazznetwork/ngx-chat

Version:

[![Build status](https://api.travis-ci.com/pazznetwork/ngx-chat.svg?branch=master)](https://travis-ci.com/pazznetwork/ngx-chat) [![Coverage](https://coveralls.io/repos/github/pazznetwork/ngx-chat/badge.svg?branch=master)](https://coveralls.io/github/pazzn

35 lines (34 loc) 811 B
export declare enum MessageState { /** * Not yet sent */ SENDING = "sending", /** * Sent, but neither received nor seen by the recipient */ SENT = "sent", /** * The recipient client has received the message but the recipient has not seen it yet */ RECIPIENT_RECEIVED = "recipientReceived", /** * The message has been seen by the recipient */ RECIPIENT_SEEN = "recipientSeen" } export interface Message { direction: Direction; body: string; datetime: Date; id?: string; delayed: boolean; fromArchive: boolean; /** * if no explicit state is set for the message, use implicit contact message states instead. */ state?: MessageState; } export declare enum Direction { in = "in", out = "out" }