symposium 0.11.2 → 0.11.3
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/Agent.js +3 -3
- package/package.json +1 -1
package/Agent.js
CHANGED
|
@@ -163,9 +163,9 @@ export default class Agent {
|
|
|
163
163
|
async output(thread, msg) {
|
|
164
164
|
const i = this.options.interfaces.find(i => i.name === thread.interface);
|
|
165
165
|
if (i) {
|
|
166
|
-
if (this.callbacks.hasOwnProperty(i + '-' + thread.id) && this.callbacks[i + '-' + thread.id].length) {
|
|
167
|
-
const callback = this.callbacks[i + '-' + thread.id].shift();
|
|
168
|
-
await callback(
|
|
166
|
+
if (this.callbacks.hasOwnProperty(i.name + '-' + thread.id) && this.callbacks[i.name + '-' + thread.id].length) {
|
|
167
|
+
const callback = this.callbacks[i.name + '-' + thread.id].shift();
|
|
168
|
+
await callback(msg);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
return i.output(thread, msg);
|