Expose the `starred` flag as a client-side message attribute.

(imported from commit 3046a44e1313d0a91a1aa6ce6d166e29311a0567)
This commit is contained in:
Jessica McKellar 2013-03-27 13:29:44 -04:00
parent f1645f5fc9
commit 2f560a79db
1 changed files with 3 additions and 0 deletions

View File

@ -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;