Update vcard.js
Example code wouldn't work anymore.
This commit is contained in:
parent
75fee76693
commit
ae6dbeb287
|
@ -280,14 +280,14 @@ converse.plugins.add('converse-vcard', {
|
||||||
* @param {string} jid The JID for which the VCard should be set
|
* @param {string} jid The JID for which the VCard should be set
|
||||||
* @param {object} data A map of VCard keys and values
|
* @param {object} data A map of VCard keys and values
|
||||||
* @example
|
* @example
|
||||||
* _converse.api.vcard.set({
|
* let jid = _converse.bare_jid;
|
||||||
* 'jid': _converse.bare_jid,
|
* _converse.api.vcard.set( jid, {
|
||||||
* 'fn': 'John Doe',
|
* 'fn': 'John Doe',
|
||||||
* 'nickname': 'jdoe'
|
* 'nickname': 'jdoe'
|
||||||
* }).then(() => {
|
* }).then(() => {
|
||||||
* // Succes
|
* // Succes
|
||||||
* }).catch(() => {
|
* }).catch((e) => {
|
||||||
* // Failure
|
* // Failure, e is your error object
|
||||||
* }).
|
* }).
|
||||||
*/
|
*/
|
||||||
async set (jid, data) {
|
async set (jid, data) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user