File tree Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export class WebChannel extends BaseChannel {
2828 channelData : any ;
2929 } ) {
3030 try {
31- let result = { userId, message : text || '' , template : { } } ;
31+ let result = { userId, message : text || '' , template : { } , isBot : true } ;
3232
3333 if ( channelData ) {
3434 result . template = {
@@ -46,30 +46,4 @@ export class WebChannel extends BaseChannel {
4646 )
4747 }
4848 }
49-
50- // async detectTemplate(channelData: any) {
51- // let result = null;
52- // if (!channelData) return result;
53-
54- // switch (channelData.type) {
55- // case 'list-button':
56- // result = {
57- // data: channelData.extendData,
58- // type: channelData.type,
59- // }
60- // break;
61- // case 'list-card':
62- // result = {
63- // data: channelData.extendData,
64- // type: channelData.type,
65- // }
66- // break;
67- // default:
68- // logger.info(
69- // `[WEB] channel web does not support type ${channelData.type}`,
70- // )
71- // break;
72- // }
73- // return result;
74- // }
7549}
You can’t perform that action at this time.
0 commit comments