diff --git a/bigbluebutton-html5/imports/ui/components/chat/container.jsx b/bigbluebutton-html5/imports/ui/components/chat/container.jsx index 070a21e4a34210c1bed19abde0d376d32161d0c1..5ba32ed22a049695388087aa476130ba3e2b20d5 100755 --- a/bigbluebutton-html5/imports/ui/components/chat/container.jsx +++ b/bigbluebutton-html5/imports/ui/components/chat/container.jsx @@ -157,11 +157,11 @@ export default injectIntl(withTracker(({ intl }) => { return { ...message, - content: message.content.map(content => ({ + content: message.content ? message.content.map(content => ({ ...content, text: content.text in intlMessages ? `<b><i>${intl.formatMessage(intlMessages[content.text], systemMessageIntl)}</i></b>` : content.text, - })), + })) : [], }; }); diff --git a/bigbluebutton-html5/imports/ui/components/chat/message-list/message-list-item/component.jsx b/bigbluebutton-html5/imports/ui/components/chat/message-list/message-list-item/component.jsx index f164d0d769ff7424b6bd9f0c86e3a167857d1334..4e9ebea3bfef182ca16827ef97796a5081ff4b3f 100644 --- a/bigbluebutton-html5/imports/ui/components/chat/message-list/message-list-item/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/chat/message-list/message-list-item/component.jsx @@ -16,7 +16,7 @@ const propTypes = { name: PropTypes.string, }), messages: PropTypes.arrayOf(Object).isRequired, - time: PropTypes.number.isRequired, + time: PropTypes.number, intl: PropTypes.shape({ formatMessage: PropTypes.func.isRequired, }).isRequired, @@ -30,6 +30,7 @@ const defaultProps = { user: null, scrollArea: null, lastReadMessageTime: 0, + time: 0, }; const intlMessages = defineMessages({