message_edit: Remove NO_LONGER from editability_types.

Previously, NO_LONGER type was just used to display
the text in the bottom-right of message edit form
which we have removed now, so we can remove `NO_LONGER`
type now.
This commit is contained in:
Sahil Batra
2022-10-13 12:28:53 +05:30
committed by Tim Abbott
parent 3c238c7b19
commit 10668b080e
2 changed files with 3 additions and 4 deletions

View File

@@ -45,7 +45,6 @@ export let notify_new_thread_default = true;
export const editability_types = {
NO: 1,
NO_LONGER: 2,
// Note: TOPIC_ONLY does not include stream messages with no topic sent
// by someone else. You can edit the topic of such a message by editing
// the topic of the whole recipient_row it appears in, but you can't
@@ -149,7 +148,7 @@ export function get_editability(message, edit_limit_seconds_buffer = 0) {
if (message.type === "stream") {
return editability_types.TOPIC_ONLY;
}
return editability_types.NO_LONGER;
return editability_types.NO;
}
export function get_deletability(message) {