sendReaction method

dynamic sendReaction({
  1. required String reaction,
})

Implementation

sendReaction({required String reaction}) async {
  final reactionMessage = ReactionMessage(
      // Note: For spaces a reaction is a general reaction, not referenced to a message
      // This is not getting added to the idempotent state
      reference: '',
      content: reaction);

  final options = ChatSendOptions(
    message: reactionMessage,
    recipient: data.spaceId,
  );

  await send(options);
}