Skip to content

Commit

Permalink
Update ChatRoom examples
Browse files Browse the repository at this point in the history
  • Loading branch information
symphony-jean-michael committed Dec 8, 2022
1 parent f887601 commit 6f92481
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/context/ref/ChatMessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ A context representing a chat message. Typically used to send the message or to
| Property | Type | Required | Example Value |
|-------------|---------|----------|-------------------|
| `type` | string | Yes | `'fdc3.chat.message'` |
| `chatRoom` | ChatRoom | Yes | `{ type: 'fdc3.chat.room', providerName: 'Symphony', id:{ roomId: 'j75xqXy25NBOdacUI3FNBH'} }` |
| `chatRoom` | ChatRoom | Yes | `{ type: 'fdc3.chat.room', providerName: 'Symphony', id:{ streamIds: ['j75xqXy25NBOdacUI3FNBH']} }` |
| `message` | [Message](https://fdc3.finos.org/schemas/next/message.schema.json) | Yes | `'A message to send'` |

## Example
Expand All @@ -33,7 +33,7 @@ const chatMessage = {
type: 'fdc3.chat.room',
providerName: "Symphony",
id: {
roomId: "j75xqXy25NBOdacUI3FNBH"
streamIds: ["j75xqXy25NBOdacUI3FNBH"]
}
},
message: "A message to send"
Expand Down
4 changes: 2 additions & 2 deletions docs/context/ref/ChatRoom.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ https://fdc3.finos.org/schemas/next/chatRoom.schema.json
|-------------|---------|----------|-------------------|
| `type` | string | Yes | `'fdc3.chat.room'` |
| `providerName` | string | Yes | `'Symphony'` |
| `id` | object | Yes | `{ roomId: 'j75xqXy25NBOdacUI3FNBH', anyOtherKey: 'abcdef'}` |
| `id` | object | Yes | `{ streamIds: ['j75xqXy25NBOdacUI3FNBH'], anyOtherKey: 'abcdef'}` |
| `url` | string | No | `'http://symphony.com/ref/room/j75xqXy25NBOdacUI3FNBH___pqSsuJRdA'` |
| `name` | string | No | `'My new room'` |

Expand All @@ -35,7 +35,7 @@ const chatRoom = {
type: "fdc3.chat.room",
providerName: "Symphony",
id: {
roomId: "j75xqXy25NBOdacUI3FNBH"
streamIds: ["j75xqXy25NBOdacUI3FNBH"]
}
url: "http://symphony.com/ref/room/j75xqXy25NBOdacUI3FNBH___pqSsuJRdA",
name: 'My new room'
Expand Down
2 changes: 1 addition & 1 deletion docs/intents/ref/ViewChat.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const chatRoom = {
type: 'fdc3.chat.room',
providerName: "Symphony",
id: {
roomId: "j75xqXy25NBOdacUI3FNBH"
streamIds: ["j75xqXy25NBOdacUI3FNBH"]
}
}

Expand Down

0 comments on commit 6f92481

Please sign in to comment.