autoreply fix

This commit is contained in:
Andris Reinman 2018-01-04 12:13:22 +02:00
parent f2b6487f76
commit ba35a2f25e

View file

@ -1110,7 +1110,7 @@ module.exports = (db, server) => {
}
}
if (!result.value.autoreply.html && 'html' in req.autoreply.params) {
if (!result.value.autoreply.html && 'html' in req.params.autoreply) {
result.value.autoreply.html = '';
if (!result.value.autoreply.text) {
// make sure we also update plaintext part
@ -1388,7 +1388,7 @@ module.exports = (db, server) => {
}
}
if (!result.value.autoreply.html && 'html' in req.autoreply.params) {
if (!result.value.autoreply.html && 'html' in req.params.autoreply) {
result.value.autoreply.html = '';
if (!result.value.autoreply.text) {
// make sure we also update plaintext part