Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Livechat: Allow resolving external image and media blocks #27387

Merged
merged 9 commits into from
Dec 2, 2022
2 changes: 1 addition & 1 deletion packages/livechat/src/components/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export const msgTypesNotRendered = ['livechat_video_call', 'livechat_navigation_

export const canRenderMessage = ({ t }) => !msgTypesNotRendered.includes(t);

export const getAttachmentUrl = (url) => `${Livechat.client.host}${url}`;
export const getAttachmentUrl = (url) => new URL(url, Livechat.client.host).toString();

export const sortArrayByColumn = (array, column, inverted) =>
array.sort((a, b) => {
Expand Down