Skip to content

Commit

Permalink
Merge pull request #177 from gabrielcazacu96/feature/conflicting-curs…
Browse files Browse the repository at this point in the history
…or-events

Fix for conflicting cursor events
  • Loading branch information
StorytellerCZ authored Feb 28, 2024
2 parents e32ffe5 + cf5a8f4 commit 63f1fc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/subscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class Subscription {
added (collectionName, doc) {
this.refCounter.increment(collectionName, doc._id)

if (this._hasDocChanged(collectionName, doc._id, doc)) {
const existingDoc = this.docHash[buildHashKey(collectionName, doc.id)]
if (!existingDoc) {
debugLog('Subscription.added', `${collectionName}:${doc._id}`)
this.meteorSub.added(collectionName, doc._id, doc)
this._addDocHash(collectionName, doc)
Expand Down

0 comments on commit 63f1fc1

Please sign in to comment.