add threadmode.
@@ -21,9 +21,13 @@ class Tree {
this.sessionToken = options.sessionToken || config.sessionToken
this.root = options.root || undefined
- if (this.root) {
- this.root.tree = this
+ // if (this.root) {
+ // this.root.tree = this
+ // }
}
+
+ addChild(message) {
+ this.root.addChild(message)
}
}
