Message Actions

LAST EDIT Apr 26 2021
This page is v2.x only.

Messages have actions. They will appear if a user long (or force) presses on a message.

Actions

Copied!
  • .reactions

  • .reply

  • .edit

  • .muteUser

  • .flagMessage

  • .flagUser

  • .banUser

  • .copy

  • .delete

Customization

Copied!
Customizing actions is not yet possible in the new v3 SDK. Stay tuned!

Properties

Copied!

ChatViewController has messageActions and defaultMessageActionsproperties.

You can customize a list of message actions:

  • override defaultMessageActions in your subclass:

  • change messageActions when you initialize ChatViewController:

or

Method

Copied!

You can override long-press action with this method of ChatViewController: