diff --git a/src/app/features/room/ThreadDrawer.tsx b/src/app/features/room/ThreadDrawer.tsx index 070cdaf58..31758237d 100644 --- a/src/app/features/room/ThreadDrawer.tsx +++ b/src/app/features/room/ThreadDrawer.tsx @@ -230,6 +230,7 @@ export function ThreadDrawer({ room, threadRootId, onClose, overlay }: ThreadDra const setReplyDraft = useSetAtom(roomIdToReplyDraftAtomFamily(threadRootId)); const replyDraft = useAtomValue(roomIdToReplyDraftAtomFamily(threadRootId)); const activeReplyId = replyDraft?.eventId; + const suppressMark = !replyDraft?.body; // User profile popup const openUserRoomProfile = useOpenUserRoomProfile(); @@ -711,7 +712,7 @@ export function ThreadDrawer({ room, threadRootId, onClose, overlay }: ThreadDra showHiddenEvents, hideThreadChip: true, }, - state: { focusItem, editId, activeReplyId, openThreadId: threadRootId }, + state: { focusItem, editId, activeReplyId, openThreadId: threadRootId, suppressMark }, permissions: { canRedact, canDeleteOwn, diff --git a/src/app/hooks/timeline/useTimelineEventRenderer.tsx b/src/app/hooks/timeline/useTimelineEventRenderer.tsx index 750f4c281..d9f43df63 100644 --- a/src/app/hooks/timeline/useTimelineEventRenderer.tsx +++ b/src/app/hooks/timeline/useTimelineEventRenderer.tsx @@ -286,6 +286,7 @@ export interface TimelineEventRendererOptions { editId?: string; activeReplyId?: string; openThreadId?: string; + suppressMark?: boolean; }; permissions: { canRedact: boolean; @@ -337,7 +338,7 @@ export function useTimelineEventRenderer({ showHiddenEvents, hideThreadChip, }, - state: { focusItem, editId, activeReplyId, openThreadId }, + state: { focusItem, editId, activeReplyId, openThreadId, suppressMark }, permissions: { canRedact, canDeleteOwn, canSendReaction, canPinEvent }, callbacks: { onUserClick, @@ -375,7 +376,7 @@ export function useTimelineEventRenderer({ const reactions = reactionRelations?.getSortedAnnotationsByKey(); const hasReactions = reactions && reactions.length > 0; const highlighted = focusItem?.index === item && focusItem.highlight; - const marked = activeReplyId === mEventId; + const marked = activeReplyId === mEventId && suppressMark !== true; const pushActions = pushProcessor.actionsForEvent(mEvent); let notifyHighlight: 'silent' | 'loud' | undefined;