File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
projects/stream-chat-angular/src/lib/message-input Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -126,12 +126,16 @@ export class MessageInputComponent
126126 } > ( ) ;
127127 /**
128128 * Emits the messsage draft whenever the composed message changes.
129- * - If the user clears the message input, or sends the message, undefined is emitted.
130- * - If active channel changes, nothing is emitted.
129+ * - If the user clears the message input, or sends the message, undefined is emitted.
130+ * - If active channel changes, nothing is emitted.
131131 *
132132 * To save and fetch message drafts, you can use the [Stream message drafts API](https://getstream.io/chat/docs/javascript/drafts/).
133133 *
134134 * Message draft only works for new messages, nothing is emitted when input is in edit mode (if `message` input is set).
135+ *
136+ * To load a message draft into the input, use the `loadDraft` method.
137+ * - If channel id doesn't match the active channel id, the draft is ignored.
138+ * - If a thread message is loaded, and the input isn't in thread mode or parent ids don't match, the draft is ignored.
135139 */
136140 @Output ( ) readonly messageDraftChange = new EventEmitter <
137141 DraftMessagePayload | undefined
You can’t perform that action at this time.
0 commit comments