File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( {
You can’t perform that action at this time.
0 commit comments