- migrateMessage(cm, options?): Promise<null | object | ChatMessage>
Parameters
- cm: ChatMessage
Optional
options: {
commit: undefined | boolean;
state: undefined | MigrationState;
} = {}commit: undefined | boolean
Returns Promise<null | object | ChatMessage>
- Returns null if no update is needed, promise if commit is true, object otherwise.
Chat Message document