Skip to content

Commit ffb4dd3

Browse files
fix(plugins/hitl): revert changes (botpress#15007)
1 parent ec41162 commit ffb4dd3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

plugins/hitl/src/conv-manager.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,17 @@ export class ConversationManager {
8585
await this.respond({ type: 'text', text })
8686
}
8787

88-
public async respond(messagePayload: types.MessagePayload, tags: types.MessageTags = {}): Promise<void> {
88+
public async respond(messagePayload: types.MessagePayload, _tags: types.MessageTags = {}): Promise<void> {
8989
// FIXME: in the future, we should use the provided UserId so that messages
9090
// on Botpress appear to come from the agent/user instead of the
9191
// bot user. For now, this is not possible because of checks in the
9292
// backend.
9393

9494
// FIXME: typescript has trouble narrowing the type here, so we use a switch
9595
// statement as a workaround.
96+
97+
const tags: Record<string, string> = {} // re-enable tags, when the new hub allows updating or upgrading plugins
98+
9699
switch (messagePayload.type) {
97100
case 'text':
98101
await this._conversation.createMessage({

0 commit comments

Comments
 (0)