From f3d2e06516c99b18dc87cadcf22e8c03eaa10f01 Mon Sep 17 00:00:00 2001 From: Gerzon Z Date: Thu, 18 Feb 2021 15:01:10 -0400 Subject: [PATCH] Update sendMessage.js --- 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;