chore: Fix push message tag error (#1768)
This commit is contained in:
parent
037ffc7419
commit
3ade7d4445
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue