feat: simplify pending approval check using messages.retrieve API (#547)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -189,7 +189,7 @@ export function ConversationSelector({
|
||||
const messages = await client.conversations.messages.list(
|
||||
conv.id,
|
||||
);
|
||||
const stats = getMessageStats(messages);
|
||||
const stats = getMessageStats(messages.getPaginatedItems());
|
||||
return {
|
||||
conversation: conv,
|
||||
lastUserMessage: stats.lastUserMessage,
|
||||
|
||||
Reference in New Issue
Block a user