ConversationManager

ConversationManager

ConversationManager class.

Extends

Members

cache :ExtMap.<string, (UserConversation|GroupConversation)>

Source:
Overrides:

The cache belonging to this ConversationManager. Keys are conversation IDs.

Type:

(readonly) client :Client

Source:
Inherited From:

The client belonging to the manager.

Type:

Methods

(async) fetchConversation(id)

Source:

Fetches a conversation. Currently cannot fetch uncached UserConversation.

Parameters:
Name Type Description
id string

The conversation ID.

(async) fetchGroupConversations() → {Promise.<ExtMap.<string, GroupConversation>>}

Source:

Fetches group conversations. Unfortunately signal-cli currently does not have a similar method for user conversations.

Returns:
Type
Promise.<ExtMap.<string, GroupConversation>>

from(id) → {UserConversation|GroupConversation}

Source:

Converts a conversation ID to a Conversation. No checks are done to see if the ID is actually valid or available.

Parameters:
Name Type Description
id string

The conversation ID.

Returns:
Type
UserConversation | GroupConversation