fix: fix not sending whole ephemeral update

This commit is contained in:
Steve Korshakov 2025-07-13 21:49:19 -07:00
parent bff8fdef77
commit 51f3656554

View File

@ -382,12 +382,7 @@ export async function startApi() {
pubsub.on('update', updateHandler);
const updateEphemeralHandler = (accountId: string, update: { type: 'activity', id: string, active: boolean, activeAt: number, thinking: boolean }) => {
if (accountId === userId) {
socket.emit('ephemeral', {
type: update.type,
id: update.id,
active: update.active,
activeAt: update.activeAt
});
socket.emit('ephemeral', update);
}
};
pubsub.on('update-ephemeral', updateEphemeralHandler);