Only show message react and reply hover buttons when actionable

This commit is contained in:
ayumi-signal 2023-08-30 08:38:21 -07:00 committed by GitHub
parent 765ae54e78
commit f394fd65fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,