Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to listen for when a message is flagged? #98

Closed
codekiln opened this issue Aug 1, 2019 · 2 comments
Closed

Any way to listen for when a message is flagged? #98

codekiln opened this issue Aug 1, 2019 · 2 comments

Comments

@codekiln
Copy link

codekiln commented Aug 1, 2019

I'd like to be able to give my moderators the ability to "flag" a message and then have the message appear at the top of the chat window as a sticky message.

I've seen the event types described in events.js - is there any existing event that could be used to receive the flag event? Alternatively, would you consider adding a flag event?

@ferhatelmas
Copy link
Contributor

You can add any custom data to your messages and then since message is updated, you will get message.updated event with the complete message to implement any logic you need.

kevinnath1007 pushed a commit to kevinnath1007/stream-chat-js that referenced this issue Aug 31, 2022
@IrvingArmenta
Copy link

On this.
I know is quite outdated, but sure, you can add a property to the message and act on it, however, that is not the issue, the issue is getting/knowing when the message has being reviewed/unflagged from the moderator dashboard, message.updated does not get triggered when that happens, so what is the simpliest solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants