use of de.catma.ui.events.InvitationRequestMessage in project catma by forTEXT.
the class JoinProjectDialog method handleJoinPressed.
private void handleJoinPressed(ClickEvent event) {
if (invitation != null) {
String regid = joinedTopic.addMessageListener(new ProjectJoinHandler(UI.getCurrent(), () -> this.close(), invitation, eventBus));
addCloseListener((evt) -> joinedTopic.removeMessageListener(regid));
invitationTopic.publish(new InvitationRequestMessage(currentUser.getUserId(), currentUser.getName(), invitation.getKey()));
}
}
Aggregations