Converse converse.js

Module: converse-roster

Methods

(private, inner) addResource(presence:)

Adds a new resource and it's associated attributes as taken from the passed in presence stanza. Also updates the presence if the resource has higher priority (and is newer).

Parameters:
Name Type Description
presence: XMLElement

The presence stanza

Source:

(private, inner) fetchFromServer() → {promise}

Fetch the roster from the XMPP server

Source:
Fires:
Returns:
Type
promise

(private, inner) fetchRosterContacts() → {promise}

Fetches the roster contacts, first by trying the browser cache, and if that's empty, then by querying the XMPP server.

Source:
Returns:

Promise which resolves once the contacts have been fetched.

Type
promise

(inner) getFilterCriteria() → {String}

Return a string of tab-separated values that are to be used when matching against filter text.

The goal is to be able to filter against the VCard fullname, roster nickname and JID.

Source:
Returns:

Lower-cased, tab-separated values

Type
String

(private, inner) getHighestPriorityResource()

Return the resource with the highest priority. If multiple resources have the same priority, take the latest one.

Source:

(private, inner) removeResource(name:)

Remove the passed in resource from the resources map. Also redetermines the presence given that there's one less resource.

Parameters:
Name Type Description
name: string

The resource name

Source: