Skip to content

Commit

Permalink
add message in pin message popup
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshun-01 committed Feb 9, 2024
1 parent ac1c38d commit 904a08f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/react/src/components/Message/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,18 @@ const Message = ({
</Modal.Header>
<Modal.Content css={css`margin: 1em;`}> Are you sure you want to pin this message? </Modal.Content>
<Modal.Content css={css`margin: 1em;`}>
{`quoted message`}
{/* Add the isPinned prop after that gets merged */}
<MessageAvatarContainer message={message} sequential={sequential} isStarred={isStarred} />
<MessageHeader message={message} isTimeStamped={false} />
<MessageBodyContainer>
<MessageBody>
{message.attachments && message.attachments.length > 0 ? (
message.file.namexxx
) : (
message.msg
)}
</MessageBody>
</MessageBodyContainer>
</Modal.Content>
<Modal.Content css={css`margin: 1em;`}>
Pinned messages are visible to everyone <br />
Expand Down

0 comments on commit 904a08f

Please sign in to comment.