mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
settings: Add frontend to change allow_edit_history to integer field.
This commit implements the frontend of migrating the `allow_edit_history` setting to `message_edit_history_visibility`. This allows organizations, to have an intermediate setting to view only the "Moves" history of the messages. Fixes #21398. Co-authored-by: Shlok Patel <shlokcpatel2001@gmail.com> Co-authored-by: Tim Abbott <tabbott@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
d0c5c1cacb
commit
f9825142c8
@@ -13,6 +13,7 @@ import type {Message} from "./message_store.ts";
|
||||
import * as popover_menus from "./popover_menus.ts";
|
||||
import * as reactions from "./reactions.ts";
|
||||
import * as rows from "./rows.ts";
|
||||
import {message_edit_history_visibility_policy_values} from "./settings_config.ts";
|
||||
import {realm} from "./state_data.ts";
|
||||
import * as timerender from "./timerender.ts";
|
||||
import {
|
||||
@@ -391,7 +392,9 @@ export function initialize(): void {
|
||||
render_message_edit_notice_tooltip({
|
||||
moved: message_container.moved,
|
||||
last_edit_timestr,
|
||||
realm_allow_edit_history: realm.realm_allow_edit_history,
|
||||
realm_message_edit_history_is_visible:
|
||||
realm.realm_message_edit_history_visibility_policy !==
|
||||
message_edit_history_visibility_policy_values.never.code,
|
||||
}),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user