Skip to content

fix(push): Route contact request pushes to Activity Center#7536

Merged
jrainville merged 1 commit into
release/10.34.xfrom
fix/issue-21189
Jun 9, 2026
Merged

fix(push): Route contact request pushes to Activity Center#7536
jrainville merged 1 commit into
release/10.34.xfrom
fix/issue-21189

Conversation

@noeliaSD

@noeliaSD noeliaSD commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Description

Add a dedicated contact request push notification type and classify contact request messages with it before sending remote push notifications.

Map contact request APNS payloads to status-app://contact-requests so tapping the notification opens the Activity Center Contact requests group instead of the chats list. Also add server-side filtering for blocked contact request authors and cover the new mapping in push notification tests.

Closes status-app PR: status-im/status-app#21189

@noeliaSD
noeliaSD requested a review from alexjba June 9, 2026 13:16
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

⚠️ Companion PR Needs Update

#21189 is not using the latest status-go commit (a5f3e3a763963dc43793d772c9094a6e4e52a3ee).

Update vendor/status-go in the companion PR.

@alexjba

alexjba commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

@siddarthkay Is there any easy way to test this? It's an update for the PN servers as well

@status-im-auto

status-im-auto commented Jun 9, 2026

Copy link
Copy Markdown
Member

Jenkins Builds

Click to see older builds (6)
Commit #️⃣ Finished (UTC) Duration Platform Result
e48a04e 1 2026-06-09 13:20:25 ~3 min macos/status-go 📄log
✔️ e48a04e 1 2026-06-09 13:22:13 ~5 min windows/status-go 📦zip
e48a04e 2 2026-06-09 13:22:53 ~1 min macos/status-go 📄log
✔️ e48a04e 1 2026-06-09 13:26:10 ~9 min linux/status-go 📦zip
✖️ e48a04e 1 2026-06-09 13:37:18 ~20 min tests-rpc 📄log
✔️ e48a04e 1 2026-06-09 13:55:47 ~39 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
a5f3e3a 3 2026-06-09 14:12:57 ~2 min macos/status-go 📄log
✔️ a5f3e3a 2 2026-06-09 14:16:01 ~5 min windows/status-go 📦zip
✔️ a5f3e3a 2 2026-06-09 14:32:24 ~22 min linux/status-go 📦zip
✖️ a5f3e3a 2 2026-06-09 14:42:51 ~32 min tests-rpc 📄log
✔️ a5f3e3a 2 2026-06-09 15:08:44 ~58 min tests 📄log
a5f3e3a 4 2026-06-09 17:50:36 ~3 min macos/status-go 📄log
a5f3e3a 5 2026-06-09 17:54:41 ~1 min macos/status-go 📄log
✔️ a5f3e3a 6 2026-06-09 18:02:57 ~4 min macos/status-go 📦zip
✖️ a5f3e3a 4 2026-06-09 18:07:45 ~3 min tests-rpc 📄log
✔️ a5f3e3a 5 2026-06-09 18:27:11 ~17 min tests-rpc 📄log

@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.33333% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release/10.34.x@8213ddd). Learn more about missing BASE report.

Files with missing lines Patch % Lines
protocol/pushnotificationclient/client.go 83.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##             release/10.34.x    #7536   +/-   ##
==================================================
  Coverage                   ?   61.30%           
==================================================
  Files                      ?      850           
  Lines                      ?   119105           
  Branches                   ?        0           
==================================================
  Hits                       ?    73012           
  Misses                     ?    38629           
  Partials                   ?     7464           
Flag Coverage Δ
functional 40.29% <66.66%> (?)
unit 55.24% <73.33%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
protocol/pushnotificationserver/gorush.go 89.70% <100.00%> (ø)
protocol/pushnotificationserver/server.go 71.57% <100.00%> (ø)
protocol/pushnotificationclient/client.go 62.19% <83.33%> (ø)

Add a dedicated contact request push notification type and classify contact request messages with it before sending remote push notifications.

Map contact request APNS payloads to `status-app://contact-requests` so tapping the notification opens the Activity Center Contact requests group instead of the chats list. Also add server-side filtering for blocked contact request authors and cover the new mapping in push notification tests.

Part of status-app issue #21189

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a dedicated contact request remote push notification type so contact request messages can be classified distinctly from normal chat messages, enabling correct deep-link routing (Activity Center → Contact Requests) and server-side filtering for blocked authors.

Changes:

  • Add CONTACT_REQUEST to PushNotificationType and set this type when sending remote push notifications for ChatMessage_CONTACT_REQUEST.
  • Map APNS payloads for contact requests to status-app://contact-requests and use a dedicated notification text.
  • Filter contact request pushes server-side when the author is blocked, and extend unit/functional test coverage for the new type/mapping.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests-functional/tests/test_push_notification_server.py Updates functional push expectation to assert the new contact-request push message text.
protocol/pushnotificationserver/server.go Adds contact-request type recognition and filtering (blocked author).
protocol/pushnotificationserver/server_test.go Extends report-building tests for valid/blocked contact-request notifications.
protocol/pushnotificationserver/gorush.go Adds contact-request notification text and APNS deep-link mapping to status-app://contact-requests.
protocol/pushnotificationserver/gorush_test.go Adds unit test coverage for contact-request text and deep-link mapping.
protocol/pushnotificationclient/client.go Classifies outgoing contact request messages as PushNotification_CONTACT_REQUEST.
protocol/protobuf/push_notifications.proto Adds CONTACT_REQUEST = 4 to PushNotificationType.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jrainville
jrainville merged commit c25b22f into release/10.34.x Jun 9, 2026
15 of 19 checks passed
@jrainville
jrainville deleted the fix/issue-21189 branch June 9, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants