fix: hide reply button on archived channels (#524)

Signed-off-by: Matt Toohey <contact@matttoohey.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matt Toohey
2026-05-11 07:56:04 -07:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 70a691517b
commit ed9498eb03
2 changed files with 8 additions and 4 deletions
@@ -320,7 +320,7 @@ export const ChannelPane = React.memo(function ChannelPane({
messages={messages}
onDelete={onDelete}
onEdit={onEdit}
onReply={onOpenThread}
onReply={activeChannel?.archivedAt ? undefined : onOpenThread}
onTargetReached={onTargetReached}
onToggleReaction={onToggleReaction}
searchActiveMessageId={channelFind.activeMatch?.messageId ?? null}
@@ -493,9 +493,13 @@ export function ChannelScreen({
onCancelThreadReply={handleCancelThreadReply}
onCloseAgentSession={handleCloseAgentSession}
onCloseThread={handleCloseThread}
onDelete={handleDelete}
onEdit={handleEdit}
onEditSave={handleEditSave}
onDelete={
activeChannel?.archivedAt ? undefined : handleDelete
}
onEdit={activeChannel?.archivedAt ? undefined : handleEdit}
onEditSave={
activeChannel?.archivedAt ? undefined : handleEditSave
}
onExpandThreadReplies={handleExpandThreadReplies}
onOpenAgentSession={handleOpenAgentSession}
onOpenDm={handleOpenDm}