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

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/27359/head^2
Cauê Felchar 3 years ago committed by GitHub
parent de47a4db0d
commit 07ea6d1d8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/livechat/src/components/helpers.js

@ -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) => {

Loading…
Cancel
Save