mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
compose: Add button to save draft and start a new message.
This commit is contained in:
@@ -281,7 +281,10 @@ export function rename_stream_recipient(
|
||||
}
|
||||
|
||||
export function snapshot_message(): LocalStorageDraft | undefined {
|
||||
if (!compose_state.composing() || compose_state.message_content().length <= 2) {
|
||||
if (
|
||||
!compose_state.composing() ||
|
||||
compose_state.message_content().length <= compose_state.MINIMUM_MESSAGE_LENGTH_TO_SAVE_DRAFT
|
||||
) {
|
||||
// If you aren't in the middle of composing the body of a
|
||||
// message or the message is shorter than 2 characters long, don't try to snapshot.
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user