Skip to content

Commit

Permalink
[FIX] Temp message ignoring real name (#2919)
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Mello <diegolmello@gmail.com>
  • Loading branch information
gerzonc and diegolmello authored Feb 23, 2021
1 parent 09843aa commit ef00edc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/lib/methods/sendMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down

0 comments on commit ef00edc

Please sign in to comment.