librelist archives

« back to archive

converse.chats.add() is not a function

converse.chats.add() is not a function

From:
Simon Hill
Date:
2015-04-23 @ 16:12
The documentation says it should be there, but I get undefined...?

https://conversejs.org/docs/html/development.html#add

converse.chats.add(contact.contact_username+'@xxxxx',contact.contact_username);

Re: converse.chats.add() is not a function

From:
Simon Hill
Date:
2015-04-23 @ 16:49
It's a typo in the documentation, should be


converse.*contacts*.add(contact.contact_username+'@xxxxx',contact.contact_username);


On Thu, Apr 23, 2015 at 9:12 AM, Simon Hill <simonhill303@gmail.com> wrote:

> The documentation says it should be there, but I get undefined...?
>
> https://conversejs.org/docs/html/development.html#add
>
> converse.chats.add(contact.contact_username+'@xxxxx',contact.contact_username);
>
>

Re: [conversejs] Re: converse.chats.add() is not a function

From:
Jc Brand
Date:
2015-04-24 @ 10:04
Thanks, fixed.

On Thu, Apr 23, 2015 at 09:49:27AM -0700, Simon Hill wrote:
>    It's a typo in the documentation, should beĀ 
> 
>  
converse.contacts.add(contact.contact_username+'@xxxxx',contact.contact_username);
> 
>    On Thu, Apr 23, 2015 at 9:12 AM, Simon Hill <[1]simonhill303@gmail.com>
>    wrote:
> 
>      The documentation says it should be there, but I get undefined...?
>      [2]https://conversejs.org/docs/html/development.html#add
> 
>  converse.chats.add(contact.contact_username+'@xxxxx',contact.contact_username);
> 
> References
> 
>    Visible links
>    1. mailto:simonhill303@gmail.com
>    2. https://conversejs.org/docs/html/development.html#add