Skip to content

Commit

Permalink
fix[Op#40437]: set emoji reactions correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
akabiru committed Oct 24, 2024
1 parent 340895a commit 466a722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/work_packages/activities_tab_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,11 @@ def generate_time_based_reaction_update_streams(last_updated_at)
# Current limitation: Only shows added reactions, not removed ones
Journal.grouped_work_package_journals_emoji_reactions(
@work_package, last_updated_at:
).each do |journal_id, emoji_reactions|
).each do |journal_id, wp_journals_grouped_emoji_reactions|
update_via_turbo_stream(
component: WorkPackages::ActivitiesTab::Journals::ItemComponent::Reactions.new(
journal: @work_package.journals.find(journal_id),
grouped_emoji_reactions:
grouped_emoji_reactions: wp_journals_grouped_emoji_reactions[journal_id]
)
)
end
Expand Down

0 comments on commit 466a722

Please sign in to comment.