mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 09:27:43 +00:00
message_edit: Apply topic edit restrictions to "(no topic)" messages.
Previously, editing topic of "(no topic)" messages was allowed irrespective of time limit or the "edit_topic_policy" setting. Since we are working in the direction of having "no topic" messages feel reasonable, this commit changes the code to not consider them as a special case and topic editing restrictions apply to them as well now like all other messages. We still highlight the topic edit icon in recipient bar without hovering for "no topic" messages, but it is only shown when user has permission to edit topics.
This commit is contained in:
@@ -54,10 +54,6 @@ export function is_topic_editable(message, edit_limit_seconds_buffer = 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (message.topic === compose.empty_topic_placeholder()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!settings_data.user_can_move_messages_to_another_topic()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user