From 42a4233e3b021059d4ea16d079eedb449d74d77d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Hal=C3=A1sz?= Date: Fri, 17 Aug 2018 13:52:50 +0200 Subject: [PATCH] Send the notification ID when propagating a notification through WS https://bugzilla.redhat.com/show_bug.cgi?id=1618705 --- app/models/notification.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/notification.rb b/app/models/notification.rb index eb4932a3bf3..966e2a6880e 100644 --- a/app/models/notification.rb +++ b/app/models/notification.rb @@ -55,8 +55,7 @@ def self.notification_text(name, message_params) def emit_message return unless ::Settings.server.asynchronous_notifications notification_recipients.pluck(:id, :user_id).each do |id, user| - to_h[:id] = id - ActionCable.server.broadcast("notifications_#{user}", to_h) + ActionCable.server.broadcast("notifications_#{user}", to_h.merge(:id => id.to_s)) end end