addReactionIconTap method

void addReactionIconTap(
  1. BaseMessage message
)

Implementation

void addReactionIconTap(BaseMessage message) async {
  Navigator.of(context).pop();
  String? reaction = await showCometChatEmojiKeyboard(
      context: context,
      unselectedCategoryIconColor:
          emojiKeyboardStyle?.unselectedCategoryIconColor,
      selectedCategoryIconColor:
          emojiKeyboardStyle?.selectedCategoryIconColor,
      dividerColor: emojiKeyboardStyle?.dividerColor,
      categoryLabel: emojiKeyboardStyle?.categoryLabelStyle,
      titleStyle: emojiKeyboardStyle?.titleStyle,
      backgroundColor: emojiKeyboardStyle?.backgroundColor);

  if (reaction != null) {
    handleReactionPress(message, reaction, message.reactions);
  }
}