Chat button with built in unread count
Use this chat button whenever you want to let the user send a message. It automatically hooks into the online/offline state of the user you want to talk to and displays if there are any unread messages in the thread. When clicked, it will automatically open a chatbox if possible - if it can't, it will redirect to the inbox (note: this won't work on the Bits website because there is no inbox).
Other members of the chat. The online indicator will use the first member in the list
By default the chat button has a fixed size, setting this to true fits the button to the container width
Size of the button. Automatically adjusts font/notification size.
Override thread type where the default value is PRIVATE if otherMembers length is 1 or GROUP if otherMembers length is greater than 1.