@@ -257,7 +257,6 @@ function MoreActionsMenu({
257257// ---------------------------------------------------------------------------
258258
259259export function MessageActionBar ( {
260- activeReplyTargetId = null ,
261260 channelId,
262261 message,
263262 onDelete,
@@ -272,7 +271,6 @@ export function MessageActionBar({
272271 reactionPending = false ,
273272 isFollowingThread,
274273} : {
275- activeReplyTargetId ?: string | null ;
276274 /** Channel UUID — required for the "Copy link" action; when omitted the
277275 * action is hidden (callers like the home inbox that lack the context). */
278276 channelId ?: string | null ;
@@ -306,7 +304,6 @@ export function MessageActionBar({
306304 return null ;
307305 }
308306
309- const isReplyingToMessage = activeReplyTargetId === message . id ;
310307 const selectedReactionCount = reactions . filter (
311308 ( reaction ) => reaction . reactedByCurrentUser ,
312309 ) . length ;
@@ -318,7 +315,7 @@ export function MessageActionBar({
318315 "opacity-100 sm:pointer-events-none sm:opacity-0" ,
319316 "sm:group-hover/message:pointer-events-auto sm:group-hover/message:opacity-100" ,
320317 "sm:group-focus-within/message:pointer-events-auto sm:group-focus-within/message:opacity-100" ,
321- isReplyingToMessage || isReactionPickerOpen || isDropdownOpen
318+ isReactionPickerOpen || isDropdownOpen
322319 ? "sm:pointer-events-auto sm:opacity-100"
323320 : "" ,
324321 ) }
@@ -390,22 +387,20 @@ export function MessageActionBar({
390387 < Tooltip >
391388 < TooltipTrigger asChild >
392389 < Button
393- aria-label = { isReplyingToMessage ? "Cancel reply" : " Reply"}
390+ aria-label = " Reply"
394391 className = "h-6 w-6 rounded-full p-0"
395392 data-testid = { `reply-message-${ message . id } ` }
396393 onClick = { ( ) => {
397394 onReply ?.( message ) ;
398395 } }
399396 size = "sm"
400397 type = "button"
401- variant = { isReplyingToMessage ? "secondary" : " ghost"}
398+ variant = " ghost"
402399 >
403400 < CornerUpLeft className = "h-3 w-3" />
404401 </ Button >
405402 </ TooltipTrigger >
406- < TooltipContent >
407- { isReplyingToMessage ? "Cancel reply" : "Reply" }
408- </ TooltipContent >
403+ < TooltipContent > Reply</ TooltipContent >
409404 </ Tooltip >
410405 ) : null }
411406
0 commit comments