chore: Fix push message tag error (#1768)
This commit is contained in:
@@ -80,6 +80,12 @@ class Notification < ApplicationRecord
|
||||
end
|
||||
# rubocop:enable Metrics/CyclomaticComplexity
|
||||
|
||||
def conversation
|
||||
return primary_actor.conversation if ['conversation_mention'].include? notification_type
|
||||
|
||||
primary_actor
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def process_notification_delivery
|
||||
|
||||
@@ -26,7 +26,7 @@ class Notification::PushNotificationService
|
||||
end
|
||||
|
||||
def conversation
|
||||
@conversation ||= notification.primary_actor
|
||||
@conversation ||= notification.conversation
|
||||
end
|
||||
|
||||
def push_message
|
||||
|
||||
Reference in New Issue
Block a user