chore: Fix push message tag error (#1768)

This commit is contained in:
Sojan Jose 2021-02-16 00:15:45 +05:30 committed by GitHub
parent 037ffc7419
commit 3ade7d4445
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -26,7 +26,7 @@ class Notification::PushNotificationService
end
def conversation
@conversation ||= notification.primary_actor
@conversation ||= notification.conversation
end
def push_message