show accept/reject footer for empty request convos
check request status before the empty-items short circuit so a pending request shows its accept/reject footer even with no messages yet Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -709,6 +709,10 @@ function getFooterState(
|
||||
convoState: ActiveConvoStates,
|
||||
hasAcceptOverride?: boolean,
|
||||
): FooterState {
|
||||
if (convoState.convo.view.status === 'request' && !hasAcceptOverride) {
|
||||
return 'request'
|
||||
}
|
||||
|
||||
if (convoState.items.length === 0) {
|
||||
if (convoState.isFetchingHistory) {
|
||||
return 'loading'
|
||||
@@ -717,10 +721,6 @@ function getFooterState(
|
||||
}
|
||||
}
|
||||
|
||||
if (convoState.convo.view.status === 'request' && !hasAcceptOverride) {
|
||||
return 'request'
|
||||
}
|
||||
|
||||
return 'standard'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user