mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +00:00
subject -> topic: Make get_event_topic() more flexible.
This commit is contained in:
@@ -323,7 +323,13 @@ exports.get_message_topic = function (obj) {
|
||||
};
|
||||
|
||||
exports.get_edit_event_topic = function (obj) {
|
||||
return obj.subject;
|
||||
if (obj.topic === undefined) {
|
||||
return obj.subject;
|
||||
}
|
||||
|
||||
// This code won't be reachable till we fix the
|
||||
// server, but we use it now in tests.
|
||||
return obj.topic;
|
||||
};
|
||||
|
||||
exports.get_edit_event_orig_topic = function (obj) {
|
||||
|
||||
Reference in New Issue
Block a user