From 94fa9a1420dc79406141426734ef1b2bc806a710 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Wed, 7 Aug 2019 23:16:42 +0700 Subject: [PATCH] Fix saving outgoing message --- lib/http-listener.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http-listener.js b/lib/http-listener.js index ed217ea..57ead95 100644 --- a/lib/http-listener.js +++ b/lib/http-listener.js @@ -33,7 +33,7 @@ function mainHandler(req, res) { if (!req.body) req.body = {}; if ( - ( !req.body.partner || !req.query.partner ) + ( !req.body.partner && !req.query.partner ) && ( ( (!req.query.is_outgoing && !req.body.is_outgoing) && (!req.query.from && !req.body.from) ) -- 1.9.0