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

Update block to deny and add implicit consent for sending messages #145

Merged
merged 3 commits into from
Nov 1, 2023

Conversation

nplasterer
Copy link
Contributor

This addresses the items outlined here: https://github.com/orgs/xmtp/discussions/49#discussioncomment-7429217

Changes the word blocked to denied and adds implicit consent for sending a message to a conversation with unknown consent.

@nplasterer nplasterer requested a review from a team as a code owner November 1, 2023 21:43
example/src/HomeScreen.tsx Outdated Show resolved Hide resolved
@@ -114,7 +114,7 @@ export class Conversation {
}
}

async consentState(): Promise<"allowed" | "blocked" | "unknown"> {
async consentState(): Promise<"allowed" | "denied" | "unknown"> {
Copy link
Contributor

Choose a reason for hiding this comment

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

i see this string union type defined twice (here and in index.ts). think it's worth it to create 1 type and reference that instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call.

Copy link
Contributor

@rygine rygine left a comment

Choose a reason for hiding this comment

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

LGTM. left some comments, but approving to unblock.

@nplasterer nplasterer merged commit 31bdfec into main Nov 1, 2023
3 of 4 checks passed
@nplasterer nplasterer deleted the np/consent-updates branch November 1, 2023 22:37
Copy link
Contributor

github-actions bot commented Nov 1, 2023

🎉 This PR is included in version 1.18.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants