Skip to content

Commit 994d46f

Browse files
committed
removed context.message.text guard from IntentDialog. This lets you recognize attachments as well.
1 parent 85b0201 commit 994d46f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Node/core/src/dialogs/IntentDialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class IntentDialog extends dlg.Dialog {
148148
}
149149

150150
var result: IIntentRecognizerResult = { score: 0.0, intent: null };
151-
if (context.message && context.message.text) {
151+
if (context.message) {
152152
// Match regular expressions first
153153
if (this.expressions) {
154154
for (var i = 0; i < this.expressions.length; i++ ) {

0 commit comments

Comments
 (0)