Merge pull request #5 from eyecreate/patch-2

Allow configuring unbind notifications to be sent or not.
This commit is contained in:
ma1uta
2019-10-22 20:52:46 +00:00
committed by GitHub
3 changed files with 16 additions and 4 deletions

View File

@@ -235,7 +235,9 @@ public class SessionManager {
}
log.info("Unbinding of {} {} to {} is accepted", tpid.getMedium(), tpid.getAddress(), mxid.getId());
notifMgr.sendForUnbind(tpid);
if (cfg.getSession().getPolicy().getUnbind().shouldNotify()) {
notifMgr.sendForUnbind(tpid);
}
}
private void checkAuthorization(String auth, JsonObject reqData) {