[FIX] Temp message ignoring real name (#2919)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Gerzon Z 2021-02-23 15:05:34 -04:00 committed by GitHub
parent 09843aa588
commit ef00edc29d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

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