Skip to content

Commit efb9378

Browse files
authored
Merge pull request #63 from Dialogue-Bot/DIAL-41-Implement-button-template-urls-for-server
DIAL-41-Implement-button-template-urls-for-server
2 parents 6360dc3 + 4431b0d commit efb9378

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

server/src/channels/web.channel.ts

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)