<< Click to display table of contents >> TRVChat.Users |
The collection of chat users (authors of messages).
property Users: TRVChatUserCollection;
The item's class is TRVChatUser or inherited from it.
Each chat message is associated with one of the users (the one who wrote it).
When the chat is already populated, you can add new users to the collection and modify all user properties (except for the name, see below).
You cannot delete users who have messages in the chat.
If you change a user's name, it will only affect new messages.
How to add your fields to users
Create your own class inherited from TRVChatUser and assign its type to RVChatUserClass variable. Do it before the first use of TRVChat component (for example, in the unit's initialization section)