hypercore 11.35.3 → 11.35.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -376,6 +376,10 @@ class Hypercore extends EventEmitter {
|
|
|
376
376
|
async _openSession(opts) {
|
|
377
377
|
if (this.core.opened === false) await this.core.ready()
|
|
378
378
|
|
|
379
|
+
if (opts.group && !this.core.header.group) {
|
|
380
|
+
await this.core.setGroup(opts.group)
|
|
381
|
+
}
|
|
382
|
+
|
|
379
383
|
if (this.keyPair === null) this.keyPair = opts.keyPair || this.core.header.keyPair
|
|
380
384
|
|
|
381
385
|
const parent = opts.parent || null
|