mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
drafts: Remove support for legacy drafts with "subject".
This removes the temporary get_draft_topic helper from utils and remove
references to draft.subject.
This finishes up the work from
9861cdfeb6. Since 2018 we had stopped
referring to the "subject" property, it is considered safe to remove
this code now. It's impossible to directly upgrade to the current
release without substantial downtime for upgrading the OS, so this
logic is unlikely to provide any future benefit.
Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
committed by
Tim Abbott
parent
19ee1e92e7
commit
1e64aa9b79
@@ -217,11 +217,6 @@ export function get_match_topic(obj) {
|
||||
return obj.match_subject;
|
||||
}
|
||||
|
||||
export function get_draft_topic(obj) {
|
||||
// We will need to support subject for old drafts.
|
||||
return obj.topic || obj.subject || "";
|
||||
}
|
||||
|
||||
export function get_reload_topic(obj) {
|
||||
// When we first upgrade to releases that have
|
||||
// topic=foo in the code, the user's reload URL
|
||||
|
||||
Reference in New Issue
Block a user