subject -> topic: Make get_event_topic() more flexible.

This commit is contained in:
Steve Howell
2018-12-23 17:08:37 +00:00
committed by Tim Abbott
parent 55b4646212
commit 0c668d13b6
2 changed files with 15 additions and 5 deletions

View File

@@ -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) {