diff --git a/packages/drivers/odsp-driver/src/odspDocumentDeltaConnection.ts b/packages/drivers/odsp-driver/src/odspDocumentDeltaConnection.ts index 0891a8898e3b..3c012ca75985 100644 --- a/packages/drivers/odsp-driver/src/odspDocumentDeltaConnection.ts +++ b/packages/drivers/odsp-driver/src/odspDocumentDeltaConnection.ts @@ -676,10 +676,12 @@ export class OdspDocumentDeltaConnection extends DocumentDeltaConnection { return; } + if (documentId !== this.documentId) { + return; + } + const filteredMsgs = msgs.filter( - (m) => - documentId === this.documentId && - (!m.targetClientId || m.targetClientId === this.clientId), + (m) => !m.targetClientId || m.targetClientId === this.clientId, ); if (filteredMsgs.length > 0) {