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}
|
menuTriggerRef={menuTriggerRef}
|
||||||
showMenu={handleContextMenu}
|
showMenu={handleContextMenu}
|
||||||
onDownload={handleDownload}
|
onDownload={handleDownload}
|
||||||
onReplyToMessage={handleReplyToMessage}
|
onReplyToMessage={canReply ? handleReplyToMessage : undefined}
|
||||||
onReact={handleReact}
|
onReact={canReact ? handleReact : undefined}
|
||||||
/>
|
/>
|
||||||
{reactionPickerRoot &&
|
{reactionPickerRoot &&
|
||||||
createPortal(
|
createPortal(
|
||||||
|
@ -337,9 +337,10 @@ export function TimelineMessage(props: Props): JSX.Element {
|
||||||
isWindowWidthNotNarrow,
|
isWindowWidthNotNarrow,
|
||||||
direction,
|
direction,
|
||||||
menuTriggerRef,
|
menuTriggerRef,
|
||||||
|
canReply,
|
||||||
|
canReact,
|
||||||
handleContextMenu,
|
handleContextMenu,
|
||||||
handleDownload,
|
handleDownload,
|
||||||
|
|
||||||
handleReplyToMessage,
|
handleReplyToMessage,
|
||||||
handleReact,
|
handleReact,
|
||||||
reactionPickerRoot,
|
reactionPickerRoot,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue