Flag and Unflag a channel user
While having moderators surveying your chats is great, this doesn't scale well. A way to overcome this is to let your users do the work for your moderators: by letting users report other users or specific messages, the work of moderators goes from scanning each message in each channel to investigate each user report (to both users and messages) and react only when deemed necessary.
In order to flag a user, create an instance of EkoUserFlagger
first:
The EkoUserFlagger
lets you flag and unflag a user, and it also exposes a asynchronous way to check whether the current logged-in user has already flagged the given user or not:
To flag a user, call the following method:
To unflag a user, call the following method: