diff --git a/src/app/components/message/Reply.tsx b/src/app/components/message/Reply.tsx index 57bf2af99a..c6a7a7cf03 100644 --- a/src/app/components/message/Reply.tsx +++ b/src/app/components/message/Reply.tsx @@ -10,6 +10,7 @@ import * as css from './Reply.css'; import { MessageBadEncryptedContent, MessageDeletedContent, MessageFailedContent } from './content'; import { scaleSystemEmoji } from '../../plugins/react-custom-html-parser'; import { useRoomEvent } from '../../hooks/useRoomEvent'; +import { useMatrixClient } from '../../hooks/useMatrixClient'; import colorMXID from '../../../util/colorMXID'; import { GetMemberPowerTag } from '../../hooks/useMemberPowerTag'; @@ -56,6 +57,7 @@ type ReplyProps = { timelineSet?: EventTimelineSet | undefined; replyEventId: string; threadRootId?: string | undefined; + replier?: string | undefined, onClick?: MouseEventHandler | undefined; getMemberPowerTag?: GetMemberPowerTag; accessibleTagColors?: Map; @@ -69,6 +71,7 @@ export const Reply = as<'div', ReplyProps>( timelineSet, replyEventId, threadRootId, + replier, onClick, getMemberPowerTag, accessibleTagColors, @@ -91,6 +94,8 @@ export const Reply = as<'div', ReplyProps>( const usernameColor = legacyUsernameColor ? colorMXID(sender ?? replyEventId) : tagColor; + const mx = useMatrixClient(); + const fallbackBody = replyEvent?.isRedacted() ? ( ) : ( @@ -101,7 +106,7 @@ export const Reply = as<'div', ReplyProps>( const bodyJSX = body ? scaleSystemEmoji(trimReplyFromBody(body)) : fallbackBody; return ( - + {threadRootId && ( )} diff --git a/src/app/features/room/RoomTimeline.tsx b/src/app/features/room/RoomTimeline.tsx index 6404305405..61bbb24861 100644 --- a/src/app/features/room/RoomTimeline.tsx +++ b/src/app/features/room/RoomTimeline.tsx @@ -128,6 +128,8 @@ import { useTheme } from '../../hooks/useTheme'; import { useRoomCreatorsTag } from '../../hooks/useRoomCreatorsTag'; import { usePowerLevelTags } from '../../hooks/usePowerLevelTags'; +import './RoomTimelineVanilla.css'; + const TimelineFloat = as<'div', css.TimelineFloatVariants>( ({ position, className, ...props }, ref) => ( {`@${ @@ -111,6 +112,7 @@ export const renderMatrixMention = ( className={css.Mention({ highlight: currentRoomId === (mentionRoom?.roomId ?? roomIdOrAlias), })} + data-highlight={currentRoomId === (mentionRoom?.roomId ?? roomIdOrAlias)} data-mention-id={mentionRoom?.roomId ?? roomIdOrAlias} data-mention-via={viaServers?.join(',')} >