mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
Disable user-visible UI for editing messages, for MIT.
This doesn't actually prevent a user from making the API call into our servers to actually go and edit a message, so this isn't a bulletproof solution for realms where messages ABSOLUTELY MUST NOT be edited. (imported from commit 5bf043a201e2952189b45f93b8c5ca7648f6aee7)
This commit is contained in:
@@ -552,6 +552,10 @@ function process_message_for_recent_subjects(message, remove_message) {
|
||||
function set_topic_edit_properties(message) {
|
||||
message.always_visible_topic_edit = false;
|
||||
message.on_hover_topic_edit = false;
|
||||
if (feature_flags.disable_message_editing) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Messages with no topics should always have an edit icon visible
|
||||
// to encourage updating them. Admins can also edit any topic.
|
||||
if (message.subject === compose.empty_subject_placeholder()) {
|
||||
|
||||
Reference in New Issue
Block a user