mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
compose_validate: Don't mix validation states for compose and edit msg.
`message_too_long` is only used to track state for compose box
and not message edit.
(cherry picked from commit 8a9363c6b7
)
This commit is contained in:
@@ -95,7 +95,7 @@ function set_message_too_long_for_compose(status: boolean): void {
|
||||
}
|
||||
|
||||
function set_message_too_long_for_edit(status: boolean, $container: JQuery): void {
|
||||
message_too_long = status;
|
||||
const message_too_long = status;
|
||||
const $message_edit_save_container = $container.find(".message_edit_save_container");
|
||||
const save_is_disabled =
|
||||
message_too_long ||
|
||||
@@ -157,6 +157,7 @@ export function get_disabled_save_tooltip($container: JQuery): string {
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
export function needs_subscribe_warning(user_id: number, stream_id: number): boolean {
|
||||
// This returns true if all of these conditions are met:
|
||||
// * the user is valid
|
||||
|
Reference in New Issue
Block a user