IConversationStore.createIM() method
Create a one to one chat with another user
Signature
createIM(userId: UserId): Promise<IConversationIM>;
Remarks
If an IM conversation with the given user already exists, that same conversation will be returned
Parameters
Parameter | Type | Description |
---|---|---|
userId | UserId | The user to start an one to one chat with |
Returns
Type | Description |
---|---|
Promise<IConversationIM> | The existing or created conversation |
Throws
Error |
---|