Kentico CMS 7.0 Developer's Guide

Chat messages

Chat messages

Previous topic Next topic Mail us feedback on this topic!  

Chat messages

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

This topic presents the various types of chat messages and ways to send them.

 

Message types

 

Users of the Chat module may encounter the following types of messages:

 

Classic - messages posted on the live site into a room.

 

 devguide_clip1878

 

Whisper - messages posted in the room, but only to a particular user designated as recipient.

 

 devguide_clip1894

 

System - messages generated by the system, informing about users joining and leaving rooms, and sent invitations.

 

 devguide_clip1877

 

Announcement - messages sent from the CMS Desk UI.

 

 devguide_clip1879

 

When a user joins a room, system messages posted earlier are not displayed to them by default. This behavior can be adjusted in Site manager -> Settings -> Community -> Chat -> First load of messages.

 

Sending messages

 

Once joined in a room, users can start sending messages. A message typed into the textbox can be sent either by clicking the Send button or by pressing Enter.

 

A new line can be inserted by pressing Shift + Enter at the same time.

 

Users can send messages either to all users present in the room, or to a selected user. Recipient of the message can be specified via the drop-down list below the message text box.

 

devguide_clip1876

 

If user selects Everyone, the message will appear to all users in the room.

 

If a particular user is selected, then only the selected user will be able to see the message. The following example shows how such message appears to the sender:

 

devguide_clip1880

 

The recipient will see the message as follows:

 

devguide_clip1881

 

After a private message is sent, the selector will revert the selected recipient back to Everyone. To prevent this and keep sending messages to a specific user, the sender should check the check-box on the left-hand side of the selector.