fix: remove incompatible icon_url from Slack postReplyInThread#5297
fix: remove incompatible icon_url from Slack postReplyInThread#5297cairon-ab wants to merge 2 commits into
Conversation
✅ Deploy Preview for asyncapi-website ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThe pull request removes the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5297 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 22 22
Lines 830 830
Branches 159 159
=========================================
Hits 830 830 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-5297--asyncapi-website.netlify.app/ |
|
@cairon-ab Please kindly wait till the referenced issue has been approved/triaged by one of he maintainers. Thank you for your understanding. |
|
|
Hi — just checking in. The linked issue #3895 is labeled as a bug and this is a two-line fix (removes the incompatible icon_url when as_user is set). All CI checks pass including coverage at 100%. Would a maintainer be able to review? Thanks. |



Description
Fixes the TypeScript type error in the
postReplyInThreadmethod inSlack.ts.Problem
When
as_user: trueis set in the Slackchat.postMessagecall, theicon_urlproperty is typed asundefinedby the@slack/web-apitypes. This is because when posting as the authenticated user, Slack automatically uses the user's profile picture — a customicon_urlis not allowed.This causes the following TypeScript compilation error:
Fix
icon_url: AVATAR_URLproperty from thepostMessagecall inpostReplyInThreadAVATAR_URLconstantThe message will be posted using the authenticated user's profile picture, which is the correct behavior when
as_user: trueis set.Related issue(s)
Fixes #3895
Summary by CodeRabbit