respondToInvitation method
void
respondToInvitation(
- String invitationId,
- String senderId,
- 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);
}