Skip to content

Add support for frequently forwarded messages in context#222

Merged
aalbarca merged 2 commits intonetflie:developmentfrom
aleedhillon:main
Feb 27, 2026
Merged

Add support for frequently forwarded messages in context#222
aalbarca merged 2 commits intonetflie:developmentfrom
aleedhillon:main

Conversation

@aleedhillon
Copy link
Contributor

@aleedhillon aleedhillon commented Feb 12, 2025

We have this field in the context object

frequently_forwarded — Boolean. Set to true if the message received by the business has been forwarded more than 5 times.

Webhooks Notification Payload Reference

We have this field in the context object

frequently_forwarded — Boolean. Set to true if the message received by the business has been forwarded more than 5 times.
@aalbarca aalbarca requested a review from Copilot February 27, 2026 08:43
@aalbarca aalbarca changed the base branch from main to development February 27, 2026 08:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for WhatsApp webhook’s context.frequently_forwarded flag so consumers can detect messages forwarded more than 5 times.

Changes:

  • Extend Support\Context to store and expose frequently_forwarded.
  • Map frequently_forwarded from the webhook payload in MessageNotificationFactory.
  • Expose isFrequentlyForwarded() on MessageNotification.

Reviewed changes

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

File Description
src/WebHook/Notification/Support/Context.php Adds frequently_forwarded state and accessor on the Context model.
src/WebHook/Notification/MessageNotificationFactory.php Maps context.frequently_forwarded from incoming webhook messages into Support\Context.
src/WebHook/Notification/MessageNotification.php Adds a convenience method to read frequently_forwarded from the attached context.

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

@aalbarca aalbarca merged commit 81c2ac0 into netflie:development Feb 27, 2026
1 check passed
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.

3 participants