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