diff --git a/zephyr/static/js/zephyr.js b/zephyr/static/js/zephyr.js index d3d24b45db..2c6d5d55c7 100644 --- a/zephyr/static/js/zephyr.js +++ b/zephyr/static/js/zephyr.js @@ -445,6 +445,9 @@ function add_message_metadata(message, dummy) { var involved_people; + message.flags = message.flags || []; + message.starred = message.flags.indexOf("starred") !== -1; + switch (message.type) { case 'stream': message.is_stream = true;