Skip to content

Commit

Permalink
added source to libs and apps (#4133)
Browse files Browse the repository at this point in the history
  • Loading branch information
AitorAlgorta authored Jan 11, 2024
1 parent 70890f8 commit f9d7c2f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ const TopicDescription = (props: TopicDescriptionProps) => {
if (!_expanded) {
wrapperSection.current.style.height = `${basicHeight}px`;
} else {
console.log('in');
if (wrapperSection && wrapperSection.current) {
console.log('in in');
wrapperSection.current.style.height = `${calculateHeightOfCodeString(code) + 100 + headerHeight}px`;
} else {
wrapperSection.current.style.height = `${basicHeight}px`;
Expand Down
3 changes: 3 additions & 0 deletions frontend/inbox/src/pages/Inbox/MessageInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ const MessageInput = (props: Props) => {
case Source.whatsapp:
message.message = outboundMapper.getTextPayload(input);
break;
case Source.airyCopilot:
message.message = outboundMapper.getTextPayload(input);
break;
}

sendMessages(message).then(() => {
Expand Down
2 changes: 2 additions & 0 deletions lib/typescript/model/Source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export enum Source {
amazons3 = 'amazons3',
amazonLexV2 = 'amazonLexV2',
integrationSourceApi = 'integrationSourceApi',
airyCopilot = 'copilot',
}

export enum SourceApps {
Expand All @@ -57,6 +58,7 @@ export const isAiryComponent = (source: string): boolean => {
case Source.airyContacts:
case Source.airyMobile:
case Source.airyWebhooks:
case Source.airyCopilot:
case Source.integrationSourceApi:
return true;
}
Expand Down
1 change: 1 addition & 0 deletions lib/typescript/render/outbound/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const getOutboundMapper = (source: string) => {
case 'google':
return new GoogleMapper();
case 'chatplugin':
case 'copilot':
return new ChatpluginMapper();
case 'twilio.sms':
case 'twilio.whatsapp':
Expand Down

0 comments on commit f9d7c2f

Please sign in to comment.