From 487029dfa0343dac3e1af3fb43806eb740f9aa84 Mon Sep 17 00:00:00 2001 From: Jennifer Hasegawa <5481259+jhaaaa@users.noreply.github.com> Date: Wed, 1 Nov 2023 12:16:12 -0700 Subject: [PATCH 1/2] docs: add user consent section --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 1857c5b2..03796fc6 100644 --- a/README.md +++ b/README.md @@ -267,6 +267,18 @@ let decodedConversation = containerAgain.decode(with: client) try await decodedConversation.send(text: "hi") ``` +## Request and respect user consent + +![Feature status](https://img.shields.io/badge/Feature_status-Alpha-orange) + +The user consent feature enables your app to request and respect user consent preferences. With this feature, a blockchain account address registered on the XMTP network can have one of three consent preference values: + +- Unknown +- Allowed +- Denied + +To learn more, see [Request and respect user consent](https://xmtp.org/docs/build/user-consent). + ## Handle different content types All of the send functions support `SendOptions` as an optional parameter. The `contentType` option allows specifying different types of content other than the default simple string standard content type, which is identified with content type identifier `ContentTypeText`. From 5f214540ac4de1babe160938f78e5d7182824647 Mon Sep 17 00:00:00 2001 From: J-Ha <5481259+jhaaaa@users.noreply.github.com> Date: Wed, 1 Nov 2023 14:23:37 -0700 Subject: [PATCH 2/2] Update README.md Co-authored-by: Saul Carlin --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 03796fc6..0900249b 100644 --- a/README.md +++ b/README.md @@ -271,7 +271,7 @@ try await decodedConversation.send(text: "hi") ![Feature status](https://img.shields.io/badge/Feature_status-Alpha-orange) -The user consent feature enables your app to request and respect user consent preferences. With this feature, a blockchain account address registered on the XMTP network can have one of three consent preference values: +The user consent feature enables your app to request and respect user consent preferences. With this feature, another blockchain account address registered on the XMTP network can have one of three consent preference values: - Unknown - Allowed