From 4dc04b8579404f614eaf16af6add05afdca2d594 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Thu, 5 Mar 2020 13:31:21 -0300 Subject: [PATCH] [FIX] Thread message not found (#1830) Co-authored-by: Diego Mello --- app/lib/methods/sendMessage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/methods/sendMessage.js b/app/lib/methods/sendMessage.js index a358f5ba..2a91637a 100644 --- a/app/lib/methods/sendMessage.js +++ b/app/lib/methods/sendMessage.js @@ -144,7 +144,7 @@ export default async function(rid, msg, tmid, user) { _id: user.id || '1', username: user.username }; - if (tmid) { + if (tmid && tMessageRecord) { m.tmid = tmid; m.tlm = messageDate; m.tmsg = tMessageRecord.msg;