1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-08-01 16:38:02 +08:00
This commit is contained in:
Hai Liang Wang 2022-04-28 22:30:37 +08:00
parent 8299af8134
commit 1c1f7b36a2

View File

@ -241,6 +241,10 @@ public class ChatbotEventSubscription {
sugg.put("text", faqReply.getString("post")); sugg.put("text", faqReply.getString("post"));
sugg.put("type", "qlist"); sugg.put("type", "qlist");
suggs.put(sugg); suggs.put(sugg);
// set the maximum suggest list as only seven items
if(i == 6){
break;
}
} }
if (suggs.length() > 0) { if (suggs.length() > 0) {
// TODO set help message on View Page // TODO set help message on View Page