chore: Change primary actor to Conversation for all the notification types. (#8435)
This commit is contained in:
@@ -35,7 +35,8 @@ class Messages::MentionService
|
||||
notification_type: 'conversation_mention',
|
||||
user: User.find(user_id),
|
||||
account: message.account,
|
||||
primary_actor: message
|
||||
primary_actor: message.conversation,
|
||||
secondary_actor: message
|
||||
).perform
|
||||
end
|
||||
end
|
||||
|
||||
@@ -21,7 +21,8 @@ class Messages::NewMessageNotificationService
|
||||
notification_type: 'participating_conversation_new_message',
|
||||
user: participant,
|
||||
account: account,
|
||||
primary_actor: message
|
||||
primary_actor: message.conversation,
|
||||
secondary_actor: message
|
||||
).perform
|
||||
end
|
||||
end
|
||||
@@ -35,7 +36,8 @@ class Messages::NewMessageNotificationService
|
||||
notification_type: 'assigned_conversation_new_message',
|
||||
user: conversation.assignee,
|
||||
account: account,
|
||||
primary_actor: message
|
||||
primary_actor: message.conversation,
|
||||
secondary_actor: message
|
||||
).perform
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user