Suggestions

close search

Message class

Represents a message.


Properties


id: string

It's the unique identifier of the message on Stringee system.

localId: string

It's the unique identifier of the message on local database.

conversationId: string

It's the unique identifier of the conversation have this message on Stringee system.

sender: string

It's the unique identifier of the user send this message.

createdAt: number

It's the time create the message.

sequence: number

It's sequence of the message.

state: number

It's status of the message:

type: number

It's type of the message:

content: string

It's content of the message.


Methods


editMessage(newContent: string): Promise<void>

Edit message's content.

pinMessage(pin: boolean): Promise<void>

Pin/Unpin a message: