An individual Message in a Conversation

interface Message {
    attachmentType: null | string;
    attachmentUrl: null | string;
    conversationId: string;
    createdAt: Date;
    deletedByCreator: boolean;
    deletedByPostUser: boolean;
    id: string;
    readByReceiver: boolean;
    senderId: string;
    text: string;
    updatedAt: Date;
}

Properties

attachmentType: null | string

The type of the attachment

Example

This should likely be an enum
attachmentUrl: null | string

The URL of an attachment

conversationId: string

Conversation#id this Message is part of

createdAt: Date

The creation date of the Message

Example

Observed: 2024-02-21T01:15:54.100Z
deletedByCreator: boolean

Has the User that created this Message deleted it?

NOTE: You aren't able to delete Messages in the app

deletedByPostUser: boolean
id: string

The unique id of the Message

readByReceiver: boolean

If the receiving User has read the message

senderId: string

The User#id that created the Message

text: string

The text content of the Message

TODO: Check if this is undefined/null-d on an image message

updatedAt: Date

The time of the last change to the Message

Example

Observed: 2024-02-22T15:31:00.593Z

Generated using TypeDoc