about summary refs log tree commit diff
path: root/src/state/messages/events/agent.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/messages/events/agent.ts')
-rw-r--r--src/state/messages/events/agent.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/state/messages/events/agent.ts b/src/state/messages/events/agent.ts
index 01165256a..9244a4fa5 100644
--- a/src/state/messages/events/agent.ts
+++ b/src/state/messages/events/agent.ts
@@ -65,10 +65,7 @@ export class MessagesEventBus {
     const handle = (event: MessagesEventBusEvent) => {
       if (event.type === 'logs' && options.convoId) {
         const filteredLogs = event.logs.filter(log => {
-          if (
-            typeof log.convoId === 'string' &&
-            log.convoId === options.convoId
-          ) {
+          if ('convoId' in log && log.convoId === options.convoId) {
             return log.convoId === options.convoId
           }
           return false
@@ -355,7 +352,7 @@ export class MessagesEventBus {
          * If there's a rev, we should handle it. If there's not a rev, we don't
          * know what it is.
          */
-        if (typeof ev.rev === 'string') {
+        if ('rev' in ev && typeof ev.rev === 'string') {
           /*
            * We only care about new events
            */