Skip to content

Commit c7215c5

Browse files
committed
Fixed issue with ListStype.inline being used for confirm prompts on text based channels.
1 parent 8dfd29c commit c7215c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Node/core/src/dialogs/Prompts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export class Prompts extends dlg.Dialog {
252252
if (style == ListStyle.auto) {
253253
if (Channel.supportsKeyboards(session, args.enumValues.length)) {
254254
style = ListStyle.button;
255-
} else if (!retry) {
255+
} else if (!retry && args.promptType == PromptType.choice) {
256256
style = args.enumValues.length < 3 ? ListStyle.inline : ListStyle.list;
257257
} else {
258258
style = ListStyle.none;

0 commit comments

Comments
 (0)