We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2dc0e2 commit ac1f004Copy full SHA for ac1f004
src/y-socket-io/y-socket-io.js
@@ -537,16 +537,7 @@ export class YSocketIO {
537
await this.client.store.persistDoc(namespace, 'index', doc)
538
}
539
540
- /**
541
- * there's a possibility where the namespace is deleted after the
542
- * persist promise resolved, so we have to check if the room still
543
- * exist.
544
- * @see cleanupNamespace
545
- * @see cleanupNamespaceImpl
546
- */
547
- if (this.namespaceMap.has(namespace)) {
548
- await this.client.trimRoomStream(namespace, 'index')
549
- }
+ await this.client.trimRoomStream(namespace, 'index')
550
} catch (e) {
551
console.error(e)
552
} finally {
0 commit comments