ChannelButton

This is meant to be placed onto a dynamically generate button that represents a chat channel the client has joined. Clicking the button will set the activeChannel of the chatbox and update the message list to only display messages for that channel.

Public Functions

Function Description
SetData(int id, string channelName) Will set the buttons text to display the channelName and when the client clicks the button will set the activeChannel to be the id. The purge/regenerate message history logic is storged within the ChatBox component.