Skip to content

Commit 4a8eabf

Browse files
committed
change how the-card designation is stored
1 parent a23758d commit 4a8eabf

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docs/thecard.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,23 @@ When `JSON` is used to represent `theCard` data, it does it differently than [jC
3434
},
3535
comm: [ // array of objects defining means of communication with the the person or topic.
3636
{
37-
des: "home", // contact designation, optional.
37+
des: ["home", "voice"], // contact designation, optional.
3838
proto: "tel", // communication protocol, required
3939
value: "+17025551234" // phone number.
4040
},
4141
{
42-
des: "work",
42+
des: ["work"],
4343
proto: "email",
4444
value: "alice@example.com", // email address
4545
},
4646
{
47-
des: "other",
47+
des: ["other"],
4848
proto: "tinode",
4949
value: "usrRkDVe0PYDOo", // tinode ID, may include server address.
5050
},
5151
{
5252
proto: "http", // should be used for either http or https website addresses.
53-
value: "https://tinode.co", // address of a website.
53+
value: "https://tinode.co", // actual address of a website.
5454
}, ...
5555
],
5656
bday: { // object, person's birthday.
@@ -61,4 +61,4 @@ When `JSON` is used to represent `theCard` data, it does it differently than [jC
6161
}
6262
```
6363

64-
All fields are optional. Tinode clients currently use only `fn`, `photo`, `note` fields. If other fields are needed in the future, then they will be adopted from the correspondent [vCard](https://www.rfc-editor.org/rfc/rfc6350.txt) fields.
64+
All fields are optional. Tinode clients currently use only `fn`, `photo`, `org`, `note`, `comm` fields. If other fields are needed in the future, then they will be adopted from the correspondent [vCard](https://www.rfc-editor.org/rfc/rfc6350.txt) fields.

0 commit comments

Comments
 (0)