have session manager check session config for sending notifications on unbinds.

This commit is contained in:
eyecreate
2019-10-21 15:30:46 -04:00
committed by GitHub
parent 90bc244f3e
commit 6450cd1f20

View File

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