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