Only show message react and reply hover buttons when actionable
This commit is contained in:
parent
765ae54e78
commit
f394fd65fb
1 changed files with 4 additions and 3 deletions
|
@ -298,8 +298,8 @@ export function TimelineMessage(props: Props): JSX.Element {
|
|||
menuTriggerRef={menuTriggerRef}
|
||||
showMenu={handleContextMenu}
|
||||
onDownload={handleDownload}
|
||||
onReplyToMessage={handleReplyToMessage}
|
||||
onReact={handleReact}
|
||||
onReplyToMessage={canReply ? handleReplyToMessage : undefined}
|
||||
onReact={canReact ? handleReact : undefined}
|
||||
/>
|
||||
{reactionPickerRoot &&
|
||||
createPortal(
|
||||
|
@ -337,9 +337,10 @@ export function TimelineMessage(props: Props): JSX.Element {
|
|||
isWindowWidthNotNarrow,
|
||||
direction,
|
||||
menuTriggerRef,
|
||||
canReply,
|
||||
canReact,
|
||||
handleContextMenu,
|
||||
handleDownload,
|
||||
|
||||
handleReplyToMessage,
|
||||
handleReact,
|
||||
reactionPickerRoot,
|
||||
|
|
Loading…
Reference in a new issue