Unverified Commit ef00edc2 authored by Gerzon Z's avatar Gerzon Z Committed by GitHub
Browse files

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


Co-authored-by: default avatarDiego Mello <diegolmello@gmail.com>
parent 09843aa5
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment