receiver.addPacketListener(this, getFilter());
}
@Override
public void invitationCanceledReceived(JID sender, String errorMsg) {
InvitationProcess invitationProcess = invitationProcesses
.getInvitationProcess(sender);
ProjectNegotiation projectExchange = projectExchangeProcesses
.getProjectExchangeProcess(sender);
if (invitationProcess != null) {
log.debug("Inv" + Utils.prefix(sender)
+ ": Received invitation cancel message");
invitationProcess.remoteCancel(errorMsg);
} else if (projectExchange != null) {
projectExchange.remoteCancel(errorMsg);
} else {
log.warn("Inv[unkown buddy]: Received invitation cancel message for unknown invitation process. Ignoring...");
}