From 6be799e1cf5219171bdf4faecc20050e20848e03 Mon Sep 17 00:00:00 2001 From: Abir Chakraborty <142606190+abirc8010@users.noreply.github.com> Date: Wed, 1 Jan 2025 19:11:04 +0530 Subject: [PATCH] fix: user action messages (#746) * fix: user action messages * remove showUsername --- packages/react/src/views/Message/Message.js | 5 ++++- packages/react/src/views/Message/MessageHeader.js | 12 ++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/packages/react/src/views/Message/Message.js b/packages/react/src/views/Message/Message.js index e297197cd..3b9db7fa6 100644 --- a/packages/react/src/views/Message/Message.js +++ b/packages/react/src/views/Message/Message.js @@ -219,7 +219,10 @@ const Message = ({ isPinned={isPinned} /> )} - + {shouldShowHeader && ( 0 ? message.msg : '(none)' + }`; + case 'room_changed_description': + return `changed description to: ${ + message?.msg && message.msg.length > 0 ? message.msg : '(none)' + }`; + case 'room_changed_topic': + return `changed topic to: ${ + message?.msg && message.msg.length > 0 ? message.msg : '(none)' + }`; default: return ''; }