use of org.moera.node.mail.EmailConfirmMail in project moera-node by MoeraOrg.
the class ProfileReceptor method updated.
@LiberinMapping
public void updated(ProfileUpdatedLiberin liberin) {
send(liberin, new ProfileUpdatedEvent());
send(liberin, new NodeNameChangedEvent(liberin.getNodeName(), liberin.getOptions(), liberin.getAvatar()));
send(Directions.profileSubscribers(liberin.getNodeId()), new ProfileUpdatedNotification());
if (!Objects.equals(liberin.getOptions().getString("profile.email"), liberin.getOldEmail())) {
send(liberin, new EmailConfirmMail());
}
}
Aggregations