diff --git a/public/config.json b/public/config.json index fad29ef06331f1bdeef1daaea5f44ea4d5e39465..6645f28f2a7be89a88953d9d7d6b0afd998b26d3 100644 --- a/public/config.json +++ b/public/config.json @@ -6,6 +6,10 @@ "title": "Chatterbox Test Room", "avatar": "https://i.imgur.com/KkSYCKB.png" }, + "footer": { + "chatterbox_link": "https://element.io/solutions/embedded-live-chat-for-customer-service", + "matrix_link": "https://matrix.org" + }, "token": "k9SL1R~GcdbjiFjC", "invite_user": "@botuser:matrix.midhun.dev", "encrypt_room": true, diff --git a/src/types/IChatterboxConfig.ts b/src/types/IChatterboxConfig.ts index c555e79db1c01bf8e01ca78a12ea543a183ed3f2..7883b127050e139e7116f959a8cb4984591ab475 100644 --- a/src/types/IChatterboxConfig.ts +++ b/src/types/IChatterboxConfig.ts @@ -11,6 +11,8 @@ export interface IChatterboxConfig { encrypt_room: boolean; // Configurations for header on chatterbox (containing title, avatar, minimize button) header: IHeader; + // Configurations for footer on chatterbox (containing what links to use) + footer: IFooter; // Token needed for token-authenticated registration token: string; // URL of the image that should be used as the users avatar @@ -23,3 +25,10 @@ interface IHeader { // An optional link to static avatar. If this is not given, the room avatar is used instead avatar?: string; } + +interface IFooter { + // Specifies the link which must be opened when chatterbox logo in the footer is clicked. + chatterbox_link: string; + // Specifies the link which must be opened when matrix branding in the footer is clicked. + matrix_link: string; +}