chore: Add display id in all conversation notifications (#3635)

- Added conversation display id in push payload for the notifications conversation_creation and conversation_assignment
This commit is contained in:
Muhsin Keloth
2021-12-21 19:59:22 +05:30
committed by GitHub
parent 307118b235
commit 262474166f
2 changed files with 20 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ class Notification < ApplicationRecord
notification_type: notification_type,
primary_actor_id: primary_actor_id,
primary_actor_type: primary_actor_type,
primary_actor: primary_actor.push_event_data.slice(:conversation_id)
primary_actor: primary_actor.push_event_data.with_indifferent_access.slice('conversation_id', 'id')
}
end