• Parameters

    • cm: ChatMessage

      Chat Message document

    • Optionaloptions: { commit?: boolean; state?: MigrationState } = {}

      Additional options

      • Optionalcommit?: boolean

        If false, no update is performed. Returns update data instead.

      • Optionalstate?: MigrationState

        State tragger. Internal use only.

    Returns Promise<null | object | ChatMessage>

    • Returns null if no update is needed, promise if commit is true, object otherwise.