Conversation that the message is in.
Fired when the properties or the body of the message has been updated.
Parameters:
data
- info object provided with the event. It has the following properties:Aggregated information about the message delivery statuses across all participants of a conversation..
Return all media attachments, except email body/history attachments, without temporary urls.
Custom attributes of the message.
Name of the user that sent the message.
Body of the message.
Date this message was created on.
Date this message was last updated on.
Index of the message in the conversation's messages list. By design of the Conversations system, the message indices may have arbitrary gaps between them, that does not necessarily mean they were deleted or otherwise modified - just that messages may have some non-contiguous indices even if they are being sent immediately one after another.
Trying to use indices for some calculations is going to be unreliable.
To calculate the number of unread messages it is better to use the read horizon API. See Conversation.getUnreadMessagesCount for details.
Identity of the last user that updated the message.
One of the attached media (if present).
The server-assigned unique identifier of the authoring participant.
The server-assigned unique identifier for the message.
Message subject. Used only in email conversations.
Type of the message.
Get the delivery receipts of the message.
Get a media descriptor for an email body attachment of a provided type. Allowed body types are returned in the Conversation.limits().emailBodiesAllowedMimeTypes array.
Type of email body to request, defaults to text/plain
.
Get a media descriptor for an email history attachment of a provided type. Allowed body types are returned in the Conversation.limits().emailHistoriesAllowedMimeTypes array.
Type of email history to request, defaults to text/plain
.
Return a (possibly empty) array of media matching a specific set of categories. Allowed category is so far only 'media'.
Array of categories to match.
Array of media descriptors matching given categories.
Get the participant who is the author of the message.
Remove the message.
Edit the message body.
New body of the message.
A message in a conversation.