Home / @sym20/core-conversations / IConversationStore

IConversationStore interface

A store that contains all conversatins that the user is allowed to access

Signature
export interface IConversationStore extends IStore<IConversation> 
export declare namespace IConversationStore 

Methods

MethodDescription
addMember(conversationId, userId, init)

Add a member to a conversation

createGroupChat(members)

Create a new group chat

createIM(userId)

Create a one to one chat with another user

createRoom(name, description, members, settings)

Create a new room

getConversation(conversationId)

Get a conversation

getConversations()

Gets all conversations that the acting user is a member of

getMember(conversationId, userId)

Get member information

getMembers(conversationId)

Get members of a conversation

hideConversation(conversationId)

Hide a conversation

joinConversation(conversationId)

Join a conversation

leaveConversation(conversationId)

Leave a conversation

muteConversation(conversationId)

Mute a conversation

unhideConversation(conversationId)

Unhide a conversation

unmuteConversation(conversationId)

Unmute a conversation

updateConversation(conversationId, settings)

Update the settings of a conversation.

updateMember(conversationId, userId, update)

Update a member of a conversation

Variables

VariableDescription
TypeTag