From f1a484cc662174717118bff1274aa473f5fa6ad9 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 4 Nov 2022 22:05:49 +0300 Subject: Fix editing --- vnext/src/ui/helpers/BubbleStyle.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vnext/src/ui/helpers/BubbleStyle.js') diff --git a/vnext/src/ui/helpers/BubbleStyle.js b/vnext/src/ui/helpers/BubbleStyle.js index 23c2df13..d2886e1e 100644 --- a/vnext/src/ui/helpers/BubbleStyle.js +++ b/vnext/src/ui/helpers/BubbleStyle.js @@ -4,7 +4,8 @@ * @returns { import('react').CSSProperties} CSS properties */ export function chatItemStyle(me, msg) { - const isMe = me.uid === msg.user.uid; + const user = msg.user; + const isMe = me.uid === user.uid; const alignment = isMe ? 'flex-end' : 'flex-start'; return { padding: '3px 6px', -- cgit v1.2.3