Search in sources :

Example 1 with InvitationRequestMessage

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()));
    }
}
Also used : InvitationRequestMessage(de.catma.ui.events.InvitationRequestMessage)

Aggregations

InvitationRequestMessage (de.catma.ui.events.InvitationRequestMessage)1