chore: Change primary actor to Conversation for all the notification types. (#8435)

This commit is contained in:
Muhsin Keloth
2023-12-06 10:43:09 +05:30
committed by GitHub
parent 17faa6c3b2
commit 76711d95ff
12 changed files with 91 additions and 74 deletions

View File

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

View File

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