respondToInvitation method

  1. @override
void respondToInvitation(
  1. String invitationId,
  2. String senderId,
  3. bool accept
)
override

Implementation

@override
void respondToInvitation(String invitationId, String senderId, bool accept) {
  InvitationMessage invitationMessage = InvitationMessage(
      id: invitationId,
      type: accept
          ? MessageType.invitationResponseAccept
          : MessageType.invitationResponseReject,
      sendTime: DateTime.now().millisecondsSinceEpoch);

  clientHandler.sendPayload(
      invitationMessage.toJson().toString(), senderId.toPersonalEventTopic);
}