File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
src/components/MessageActions Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,14 @@ const MessageActionsBox = ({
5959 ref = { checkIfReverse }
6060 >
6161 < ul className = "str-chat__message-actions-list" >
62- { messageActions . indexOf ( MESSAGE_ACTIONS . pin ) > - 1 && (
63- < button onClick = { handlePin } >
64- < li className = "str-chat__message-actions-list-item" >
65- { ! message ?. pinned ? t ( 'Pin' ) : t ( 'Unpin' ) }
66- </ li >
67- </ button >
68- ) }
62+ { messageActions . indexOf ( MESSAGE_ACTIONS . pin ) > - 1 &&
63+ ! message ?. parent_id && (
64+ < button onClick = { handlePin } >
65+ < li className = "str-chat__message-actions-list-item" >
66+ { ! message ?. pinned ? t ( 'Pin' ) : t ( 'Unpin' ) }
67+ </ li >
68+ </ button >
69+ ) }
6970 { messageActions . indexOf ( MESSAGE_ACTIONS . flag ) > - 1 && (
7071 < button onClick = { handleFlag } >
7172 < li className = "str-chat__message-actions-list-item" > { t ( 'Flag' ) } </ li >
You can’t perform that action at this time.
0 commit comments