Click or drag to resize
ChatRoomHelperCreateOneToOneChatRoom Method
Creates one-to-one chat room and inserts it into the DB. If room already exists, the old one is returned. Invitation is send to secondChatUser and both users get 'Join' rights to this room.

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 12.0.0
Syntax
C#
public static ChatRoomData CreateOneToOneChatRoom(
	ChatUserInfo currentChatUser,
	ChatUserInfo secondChatUser
)

Parameters

currentChatUser
Type: CMS.ChatChatUserInfo
Current chat user
secondChatUser
Type: CMS.ChatChatUserInfo
Chat user to whisper with

Return Value

Type: ChatRoomData
ChatRoomData
See Also