|
|
|
@ -92,7 +92,7 @@ function checkSMS() {
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
req.on('error', error => {
|
|
|
|
|
logger.warning(error);
|
|
|
|
|
logger.warn(error);
|
|
|
|
|
});
|
|
|
|
|
req.end();
|
|
|
|
|
}
|
|
|
|
@ -502,11 +502,11 @@ client.on("Room.timeline", function (event, room) {
|
|
|
|
|
}
|
|
|
|
|
if (event.getTs() < (Date.now() - 1000 * 60 * 60 * 8)) {
|
|
|
|
|
// Ignore old events (8 hrs), they're probably duplicates or something.
|
|
|
|
|
logger.warning("Ignoring stale Matrix room event [" + event.getId() + "]: older than 8 hours");
|
|
|
|
|
logger.warn("Ignoring stale Matrix room event [" + event.getId() + "]: older than 8 hours");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (event.getTs() < boottimestamp) {
|
|
|
|
|
logger.warning("Ignoring stale Matrix room event [" + event.getId() + "]: event predates start of this program");
|
|
|
|
|
logger.warn("Ignoring stale Matrix room event [" + event.getId() + "]: event predates start of this program");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (event.getContent() == null || typeof event.getContent().body == "undefined" || event.getContent().body == null) {
|
|
|
|
|