mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Only show message react and reply hover buttons when actionable
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user