Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

Custom status message #16

Open
bookercodes opened this issue Mar 27, 2018 · 3 comments
Open

Custom status message #16

bookercodes opened this issue Mar 27, 2018 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@bookercodes
Copy link
Contributor

On WhatsApp, Skype, Slack, etc. it's possible for each user to set their online status. This is a pretty common use-case and I would love to see how to do it with Chatkit.

@bookercodes bookercodes added help wanted Extra attention is needed good first issue Good for newcomers labels Mar 27, 2018
@lukejacksonn lukejacksonn added the enhancement New feature or request label Apr 3, 2018
@Leschonander
Copy link

Maybe in user header or in user list add a simple little input box with a drop down menu for various statuses? Need to save the value for that however and slightly unfamiller in how react saves form data

@fejj182
Copy link

fejj182 commented Apr 14, 2018

Would you need to create a 'status' property in the User class in user.js from the Chatkit and a setStatus method on the user? This will then be returned to the application from the Chatkit and you could display it under the user id in UserHeader.

@lukejacksonn
Copy link
Owner

Both of you are on the right tracks! @Leschonander the UserHeader would be a great place to put a custom status drop down but as @fejj182 points out, you would need to store this status on the server so that all other connected clients could observe it.

This is a limitation of the Chatkit library at the moment but I believe work is being planned that will allow you to attach arbitrary metadata to message, room and user objects.

Knowing the features in most demand helps us decide which to implement next, so thanks for showing an interest here!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants