Tighten back up loose check
This commit is contained in:
@@ -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
|
* If there's a rev, we should handle it. If there's not a rev, we don't
|
||||||
* know what it is.
|
* know what it is.
|
||||||
*/
|
*/
|
||||||
if ('rev' in ev) {
|
if ('rev' in ev && typeof ev.rev === 'string') {
|
||||||
const isUninitialized = !this.latestRev
|
const isUninitialized = !this.latestRev
|
||||||
const isNewEvent = this.latestRev && ev.rev > this.latestRev
|
const isNewEvent = this.latestRev && ev.rev > this.latestRev
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
* If there's a rev, we should handle it. If there's not a rev, we don't
|
||||||
* know what it is.
|
* know what it is.
|
||||||
*/
|
*/
|
||||||
if ('rev' in ev) {
|
if ('rev' in ev && typeof ev.rev === 'string') {
|
||||||
/*
|
/*
|
||||||
* We only care about new events
|
* We only care about new events
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user