Skip to content

Commit

Permalink
tab name fix (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaaaa committed Jul 10, 2024
1 parent b63a78c commit af2b62b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 37 deletions.
72 changes: 36 additions & 36 deletions docs/build/group-chat.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ If you want your app to support group chat offered by V3, you must explicitly co

`dbEncryptionKey` is optional. For Android, if not provided, a key is created and stored for you. For iOS, if not provided, the database remains unencrypted.

<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>

```jsx
Expand Down Expand Up @@ -203,7 +203,7 @@ Only users with V3 identities can participate in a group chat. For this reason,
To learn more about V3 identities, see [Multi-wallet Identity in V3](/docs/concepts/v3/identity.md).
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -247,7 +247,7 @@ const canMessage = await client.canMessage([
To create a group chat, each of the specified member addresses must have a V3 identity and have used the identity to start up an app installation that supports group chat.
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -314,7 +314,7 @@ Display group chats associated with the current client.
In this documentation, “group chat” refers to "group chat conversations." As with XMTP direct message conversations, conversations do not include the messages in the conversation.
:::
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -378,7 +378,7 @@ const groups = await client.conversations.list(options);
### Get group chat messages
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -419,7 +419,7 @@ Use the `isActive` property to check if the current user is still a participan
Use this status to adjust the user’s interface accordingly, such as removing the user’s ability to send messages in the group chat.
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -456,7 +456,7 @@ const isActive = group.isActive;
Group chat supports all message types you can send using direct message conversations, including [Subscription Frames](/docs/tutorials/subscribe-frames), [replies](/docs/build/messages/reply), [reactions](/docs/build/messages/reaction), [attachments](/docs/build/messages/remote-attachment), and [read receipts](/docs/build/messages/read-receipt).
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -506,7 +506,7 @@ await group.send("Hello, group!", ContentTypeText);
### Stream group chat updates
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -603,7 +603,7 @@ stream.stop();
Stream messages and member management updates in group chats, such as adding and removing members:
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -712,7 +712,7 @@ However, you must sync (or use streaming) to enable **other** users to see the g
### Sync group chat updates
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -774,7 +774,7 @@ await client.conversations.sync();
Use **`sync()`** to synchronize group chat data, such as new messages or membership changes.
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -839,7 +839,7 @@ By design, checking admin permission status by wallet address is not supported.
### Check if inbox ID is an admin
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -877,7 +877,7 @@ const isAdmin = group.isAdmin(inboxId);
### Check if inbox ID is a super admin
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -915,7 +915,7 @@ const isSuperAdmin = group.isSuperAdmin(inboxId);
### List admins
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -949,7 +949,7 @@ Code sample coming soon
### List super admins
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -983,7 +983,7 @@ Code sample coming soon
### Add admin status to inbox ID
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1016,7 +1016,7 @@ Code sample coming soon
### Add super admin status to inbox ID
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1049,7 +1049,7 @@ Code sample coming soon
### Remove admin status from inbox ID
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1082,7 +1082,7 @@ Code sample coming soon
### Remove super admin status from inbox ID
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1117,7 +1117,7 @@ Code sample coming soon
### Add members by inbox ID
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1152,7 +1152,7 @@ await group.addMembers([inboxId]);
### Add members by address
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1188,7 +1188,7 @@ await group.addMembers([walletAddress]);
### Remove members by inbox ID
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1223,7 +1223,7 @@ await group.removeMembers([inboxId]);
### Remove members by address
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1258,7 +1258,7 @@ await group.removeMembers([walletAddress]);
### Get inbox IDs for members
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1300,7 +1300,7 @@ Code sample coming soon
### Get addresses for members
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1339,7 +1339,7 @@ const members = group.members;
### Get the inbox ID that added the current member
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1390,7 +1390,7 @@ To learn how to keep user consent preferences synchronized, see [Synchronize use
### Allow or deny contact by wallet in group chat
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1428,7 +1428,7 @@ Code sample coming soon
### Allow or deny contact by inbox ID in group chat
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1473,7 +1473,7 @@ Code sample coming soon
### Allow or deny contact by group chat ID
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1516,7 +1516,7 @@ Code sample coming soon
Enable a user to explicitly allow or deny contact from an inbox ID.
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1564,7 +1564,7 @@ Code sample coming soon
Check if contact from a group chat ID is allowed or denied for a user.
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1603,7 +1603,7 @@ Code sample coming soon
Check if contact from an inbox ID is allowed or denied for a user.
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1640,7 +1640,7 @@ Group chats can have metadata, like names and images. Metadata can help users mo
### Get a group chat name
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1675,7 +1675,7 @@ const groupName = group.name;
### Update a group chat name
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1710,7 +1710,7 @@ await group.updateName("New Group Name");
### Get a group chat image URL
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down Expand Up @@ -1743,7 +1743,7 @@ Code sample coming soon
### Update a group chat image URL
<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="rn" label="React Native" attributes={{className: "rn_tab"}}>
```jsx
Expand Down
2 changes: 1 addition & 1 deletion docs/build/streams.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ useEffect(() => {

Monitor updates in group chats, including member management activities like adding and removing members as well as the creation of new group chats.

<Tabs groupId="groupchats">
<Tabs groupId="sdklangs">
<TabItem value="js" label="JavaScript" attributes={{className: "js_tab "}}>

Code sample expected for Q2 2024
Expand Down

0 comments on commit af2b62b

Please sign in to comment.