sendLiveReaction method

dynamic sendLiveReaction()

Implementation

sendLiveReaction() {
  CometChatMessageEvents.ccLiveReaction(
      liveReactionIconURL ?? AssetConstants.heart,
      user?.uid ?? group?.guid ?? '');
  TransientMessage transientMessage = TransientMessage(
      receiverType: receiverType,
      data: {
        "type": "live_reaction",
        'reaction': "heart",
        "packageName": UIConstants.packageName
      },
      receiverId: receiverID);
  CometChat.sendTransientMessage(transientMessage, onSuccess: () {
    debugPrint("Success");
  },
      onError: onError ??
          (CometChatException e) {
            debugPrint(e.message);
          });
}