[FIX] Thread message not found (#1830)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Diego Mello 2020-03-05 13:31:21 -03:00 committed by GitHub
parent a7d7ff4bb9
commit 4dc04b8579
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;