Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use split attachments for templates media attachment for consistency … #752

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

norkans7
Copy link
Contributor

@norkans7 norkans7 commented Jun 6, 2024

…with messages attachments

Copy link

codecov bot commented Jun 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.89%. Comparing base (2e8f3dc) to head (08e87fc).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #752      +/-   ##
==========================================
+ Coverage   75.83%   75.89%   +0.06%     
==========================================
  Files         111      111              
  Lines       10365    10368       +3     
==========================================
+ Hits         7860     7869       +9     
+ Misses       1786     1784       -2     
+ Partials      719      715       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

attType = strings.Split(attType, "/")[0]
if attType == "application" {
attType = "document"
}
Copy link
Member

Choose a reason for hiding this comment

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

I think this code is simpler to read if we let attType stay as "application".. because that is is the attachment type in our world, and use document in the WhatsApp payload

@norkans7 norkans7 force-pushed the split-template-attachments branch from fcdf3a0 to 08e87fc Compare June 6, 2024 15:03
@norkans7 norkans7 requested a review from rowanseymour June 6, 2024 15:03
@norkans7 norkans7 marked this pull request as ready for review June 6, 2024 15:04
@rowanseymour rowanseymour merged commit 36c7a42 into main Jun 6, 2024
7 checks passed
@rowanseymour rowanseymour deleted the split-template-attachments branch June 6, 2024 15:35
@github-actions github-actions bot locked and limited conversation to collaborators Jun 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants