From cf53951c39d5b9d0913b56521d679f28e5b09371 Mon Sep 17 00:00:00 2001 From: Akshun-01 Date: Tue, 20 Feb 2024 23:34:33 +0530 Subject: [PATCH] add message to be pinned in confirmation modal --- .../react/src/components/Message/Message.js | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/packages/react/src/components/Message/Message.js b/packages/react/src/components/Message/Message.js index eef270020..e42f64f2f 100644 --- a/packages/react/src/components/Message/Message.js +++ b/packages/react/src/components/Message/Message.js @@ -288,20 +288,28 @@ const Message = ({ Are you sure you want to pin this message? {/* Add the isPinned prop after that gets merged */} - - + + {showAvatar && ( + + )} - - {message.attachments && message.attachments.length > 0 ? ( - message.file.namexxx - ) : ( - message.msg - )} - - + + + {message.attachments && message.attachments.length > 0 ? ( + message.file.name + ) : ( + message.msg + )} + + + - Pinned messages are visible to everyone
+ Pinned messages are visible to everyone Starred messages are only visible to you