mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
settings: Rename helper function to check who can edit topics.
This commit renames "can_edit_topic_of_any_message" function in models.py to "can_move_messages_to_another_topic" and "user_can_edit_topic_of_any_message" function in settings_data.js to "user_can_move_messages_to_another_topic". This change is done since topic editing permission does not depend on message sender now and messages are considered same irrespective of whether the user who is editing the topic had sent the message or not. This also makes the naming consistent with what we use for the label of this setting in webapp and how we describe this action in help documentation.
This commit is contained in:
@@ -201,7 +201,7 @@ export function warn_if_topic_resolved(topic_changed) {
|
||||
return;
|
||||
}
|
||||
|
||||
const button_text = settings_data.user_can_edit_topic_of_any_message()
|
||||
const button_text = settings_data.user_can_move_messages_to_another_topic()
|
||||
? $t({defaultMessage: "Unresolve topic"})
|
||||
: null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user