Tighten back up loose check

This commit is contained in:
Eric Bailey
2025-02-13 12:48:09 -06:00
parent 506f01862c
commit 1e923448f8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -704,7 +704,7 @@ export class Convo {
* If there's a rev, we should handle it. If there's not a rev, we don't
* know what it is.
*/
if ('rev' in ev) {
if ('rev' in ev && typeof ev.rev === 'string') {
const isUninitialized = !this.latestRev
const isNewEvent = this.latestRev && ev.rev > this.latestRev
+1 -1
View File
@@ -352,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 ('rev' in ev) {
if ('rev' in ev && typeof ev.rev === 'string') {
/*
* We only care about new events
*/