scheduled_messages: Force save drafts of any length when scheduling.

Previously, if you wrote a two character message and attempted to
schedule it, there would be an assertion error on the draft_id
because we don't allow saving drafts with messages less than two
characters without force_save=true.
This commit is contained in:
Evy Kassirer
2025-10-08 15:54:14 -07:00
committed by Tim Abbott
parent 796c0387a3
commit b7cf928615

View File

@@ -435,6 +435,7 @@ function schedule_message_to_custom_date(): void {
no_notify: true,
update_count: false,
is_sending_saving: true,
force_save: true,
});
assert(draft_id !== undefined);