mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
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:
co-authored by
Claude Opus 4.6
parent
70a691517b
commit
ed9498eb03
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user