Add LDAP support Matrix ID room invites notifications

This commit is contained in:
Max Dor
2018-10-10 00:41:32 +02:00
parent 3eee4eaccf
commit 407138e972
9 changed files with 338 additions and 12 deletions

View File

@@ -67,8 +67,13 @@ public abstract class GenericTemplateNotificationGenerator extends PlaceholderNo
@Override
public String getForInvite(IMatrixIdInvite invite) {
String template = cfg.getGeneric().get("matrixId");
if (StringUtils.isBlank(template)) {
throw new InternalServerError("No " + invite.getMedium() + " template configured for Matrix ID invites");
}
log.info("Generating notification content for Matrix ID invite");
return populateForInvite(invite, getTemplateContent(cfg.getGeneric().get("matrixId")));
return populateForInvite(invite, getTemplateContent(template));
}
@Override