FIX: the notification data on the client expects an identifier (#18850)

This commit is contained in:
Joffrey JAFFEUX 2022-11-03 09:06:05 +01:00 committed by GitHub
parent 1c52e11d48
commit 9ff091dc01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -51,6 +51,7 @@ module Jobs
when :global_mentions
data[:identifier] = "all"
else
data[:identifier] = identifier_type if identifier_type
data[:is_group_mention] = true
end

View File

@ -445,7 +445,7 @@ describe Jobs::ChatNotifyMentioned do
track_core_notification(message: message, to_notify_ids_map: to_notify_ids_map)
data_hash = created_notification.data_hash
expect(data_hash[:identifier]).to be_nil
expect(data_hash[:identifier]).to eq(@chat_group.name)
expect(data_hash[:is_group_mention]).to eq(true)
end