[FIX] Temp message ignoring real name (#2919)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
09843aa588
commit
ef00edc29d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue