mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
dict: Replace items method with @@iterator method.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
9e1343ff8a
commit
fac2c71776
@@ -417,8 +417,7 @@ exports.get_message_reactions = function (message) {
|
||||
}
|
||||
collapsed_reaction.user_ids.push(user_id);
|
||||
});
|
||||
const reactions = message_reactions.items().map(function (item) {
|
||||
const reaction = item[1];
|
||||
const reactions = Array.from(message_reactions.values(), reaction => {
|
||||
reaction.local_id = reaction.local_id;
|
||||
reaction.reaction_type = reaction.reaction_type;
|
||||
reaction.emoji_name = reaction.emoji_name;
|
||||
|
||||
Reference in New Issue
Block a user