From ef00edc29de107141cdfc40fc03d760b7df234a9 Mon Sep 17 00:00:00 2001 From: Gerzon Z Date: Tue, 23 Feb 2021 15:05:34 -0400 Subject: [PATCH] [FIX] Temp message ignoring real name (#2919) Co-authored-by: Diego Mello --- app/lib/methods/sendMessage.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/lib/methods/sendMessage.js b/app/lib/methods/sendMessage.js index a9a86ae60b..ef22cd8047 100644 --- a/app/lib/methods/sendMessage.js +++ b/app/lib/methods/sendMessage.js @@ -151,7 +151,8 @@ export default async function(rid, msg, tmid, user, tshow) { tm.status = messagesStatus.TEMP; tm.u = { _id: user.id || '1', - username: user.username + username: user.username, + name: user.name }; tm.t = message.t; if (message.t === E2E_MESSAGE_TYPE) { @@ -175,7 +176,8 @@ export default async function(rid, msg, tmid, user, tshow) { m.status = messagesStatus.TEMP; m.u = { _id: user.id || '1', - username: user.username + username: user.username, + name: user.name }; if (tmid && tMessageRecord) { m.tmid = tmid;