have session manager check session config for sending notifications on unbinds.
This commit is contained in:
@@ -234,8 +234,10 @@ public class SessionManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
log.info("Unbinding of {} {} to {} is accepted", tpid.getMedium(), tpid.getAddress(), mxid.getId());
|
log.info("Unbinding of {} {} to {} is accepted", tpid.getMedium(), tpid.getAddress(), mxid.getId());
|
||||||
|
if (cfg.getSession().getPolicy().getUnbind().shouldNotify()) {
|
||||||
notifMgr.sendForUnbind(tpid);
|
notifMgr.sendForUnbind(tpid);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void checkAuthorization(String auth, JsonObject reqData) {
|
private void checkAuthorization(String auth, JsonObject reqData) {
|
||||||
if (!auth.startsWith("X-Matrix ")) {
|
if (!auth.startsWith("X-Matrix ")) {
|
||||||
|
Reference in New Issue
Block a user