Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(store): add thread state management

Steven Enamakeldd1523595425
diff --git a/app/src/store/threadSlice.ts b/app/src/store/threadSlice.ts
index 98d1df3a4c..01a2c9a5f2 100644
--- a/app/src/store/threadSlice.ts
+++ b/app/src/store/threadSlice.ts
@@ -510,15 +510,13 @@ const threadSlice = createSlice({
return [];
};
thread[rowId] = {
- reactions: storedItems((saved as ChannelActivity | undefined)?.reactions).map(
- item => ({
- actorId: typeof item.actorId === 'string' ? item.actorId : '',
- value: typeof item.value === 'string' ? item.value : '',
- ...(typeof item.customEmojiId === 'string'
- ? { customEmojiId: item.customEmojiId }
- : {}),
- })
- ),
+ reactions: storedItems((saved as ChannelActivity | undefined)?.reactions).map(item => ({
+ actorId: typeof item.actorId === 'string' ? item.actorId : '',
+ value: typeof item.value === 'string' ? item.value : '',
+ ...(typeof item.customEmojiId === 'string'
+ ? { customEmojiId: item.customEmojiId }
+ : {}),
+ })),
readReceipts: storedItems((saved as ChannelActivity | undefined)?.readReceipts).map(
item => ({
actorId: typeof item.actorId === 'string' ? item.actorId : '',