Skip to content

benpankow/unsubscribe rd 2#1177

Draft
benpankow wants to merge 2 commits into
mainfrom
benpankow/unsubscribe-rd-2
Draft

benpankow/unsubscribe rd 2#1177
benpankow wants to merge 2 commits into
mainfrom
benpankow/unsubscribe-rd-2

Conversation

@benpankow

Copy link
Copy Markdown
Collaborator

Description

How did you test your changes?

PR Checklist

  • I linked an issue with prior discussion confirming this change is wanted
  • I ran the relevant checks from CONTRIBUTING.md
  • I added tests and documentation where relevant
  • I added a changeset if this touches the published eve package
  • DCO sign-off passes for every commit (git commit --signoff)

Stack created with GitHub Stacks CLIGive Feedback 💬

Signed-off-by: benpankow <ben.pankow@vercel.com>
@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
eve-docs Ready Ready Preview, Comment, Open in v0 Jul 24, 2026 5:19pm
eve-docs-1644 Ready Ready Preview, Comment, Open in v0 Jul 24, 2026 5:19pm
eve-docs-4759 Ready Ready Preview, Comment, Open in v0 Jul 24, 2026 5:19pm

const delivery = readSlackMessageDeliveryData(payload.channelData);
if (delivery === undefined) return defaultDeliverResult(payload);

const current = adapterCtx.state.subscription as SlackSubscriptionState;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
const current = adapterCtx.state.subscription as SlackSubscriptionState;
const current = (adapterCtx.state.subscription ?? "subscribed") as SlackSubscriptionState;

Pre-existing Slack sessions lack a serialized subscription field, so current is undefined and the first non-mention message throws a misleading resolver error.

Fix on Vercel

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.

1 participant