use of com.google.gerrit.server.mail.send.SetAssigneeSender in project gerrit by GerritCodeReview.
the class SetAssigneeOp method postUpdate.
@Override
public void postUpdate(Context ctx) throws OrmException {
try {
SetAssigneeSender cm = setAssigneeSenderFactory.create(change.getProject(), change.getId(), newAssignee.getAccountId());
cm.setFrom(user.get().getAccountId());
cm.send();
} catch (Exception err) {
log.error("Cannot send email to new assignee of change " + change.getId(), err);
}
assigneeChanged.fire(change, ctx.getAccount(), oldAssignee != null ? oldAssignee.getAccount() : null, ctx.getWhen());
}
Aggregations