mirror of https://github.com/zulip/zulip.git
Expose the `starred` flag as a client-side message attribute.
(imported from commit 3046a44e1313d0a91a1aa6ce6d166e29311a0567)
This commit is contained in:
parent
f1645f5fc9
commit
2f560a79db
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue