Skip to content

Commit

Permalink
fix: use well known flag in after incoming middleware hook
Browse files Browse the repository at this point in the history
  • Loading branch information
rndlaine committed Oct 3, 2018
1 parent a94f0a3 commit 4496af7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/bp/core/services/dialog/instruction/queue.test.ts
Expand Up @@ -13,6 +13,7 @@ describe('Instruction Queue', () => {

describe('Has instructions', () => {
it('Returns true when not empty', () => {
const yo = queue.yo
expect(queue.hasInstructions()).toBeTruthy()
})
})
Expand Down
4 changes: 4 additions & 0 deletions src/bp/core/services/dialog/instruction/queue.ts
Expand Up @@ -12,6 +12,10 @@ export class InstructionQueue {
}
}

get yo() {
return 'yo'
}

get instructions() {
return this._instructions
}
Expand Down
@@ -1,4 +1,5 @@
const messageTypesToDiscard = ['session_reset', 'typing', 'visit']

if (messageTypesToDiscard.includes(event.type)) {
event.setFlag('skipDialogEngine', true)
event.setFlag(bp.IO.WellKnownFlags.SKIP_DIALOG_ENGINE, true)
}

0 comments on commit 4496af7

Please sign in to comment.