Home / @sym20/core-conversations / IConversationStore / getConversation

IConversationStore.getConversation() method

Get a conversation

Signature
getConversation(conversationId: ConversationId): Promise<IConversation>;

Remarks

Only conversations that are public, or that the acting user is a member of, are available. So even if the specified conversation ID actually exists, this method will fail with ConversationNotFound if the conversation is not available to the acting user.

Parameters

ParameterTypeDescription
conversationIdConversationId

The conversation to get

Returns

TypeDescription
Promise<IConversation>

A single conversation

Throws

Error

ConversationNotFound