From 0d5e50eb4bdafad492e5c0f136ce12c93c2625ac Mon Sep 17 00:00:00 2001 From: yash-rajpal <58601732+yash-rajpal@users.noreply.github.com> Date: Thu, 18 Feb 2021 10:53:46 -0800 Subject: [PATCH] [FIX] Real name setting ignored on reply preview (#2908) Co-authored-by: Diego Mello --- app/containers/MessageBox/ReplyPreview.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/containers/MessageBox/ReplyPreview.js b/app/containers/MessageBox/ReplyPreview.js index e1fcbcca..1a77a254 100644 --- a/app/containers/MessageBox/ReplyPreview.js +++ b/app/containers/MessageBox/ReplyPreview.js @@ -43,7 +43,7 @@ const styles = StyleSheet.create({ }); const ReplyPreview = React.memo(({ - message, Message_TimeFormat, baseUrl, username, replying, getCustomEmoji, close, theme + message, Message_TimeFormat, baseUrl, username, replying, getCustomEmoji, close, theme, useRealName }) => { if (!replying) { return null; @@ -59,7 +59,7 @@ const ReplyPreview = React.memo(({ > - {message.u?.username} + {useRealName ? message.u?.name : message.u?.username} {time} ({ Message_TimeFormat: state.settings.Message_TimeFormat, - baseUrl: state.server.server + baseUrl: state.server.server, + useRealName: state.settings.UI_Use_Real_Name }); export default connect(mapStateToProps)(ReplyPreview);