Skip to content

Commit

Permalink
Fixing broken thread issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnarkhede committed Dec 23, 2019
1 parent fcb543a commit 3c1f62d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/MessageList.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,14 @@ const MessageList = withChannelContext(
insertDates = (messages) => {
const newMessages = [];
if (messages.length === 0) {
this.props.eventHistory.none.forEach((e) => {
newMessages.push({
type: 'channel.event',
event: e,
this.props.eventHistory &&
this.props.eventHistory.none &&
this.props.eventHistory.none.forEach((e) => {
newMessages.push({
type: 'channel.event',
event: e,
});
});
});

return newMessages;
}
Expand Down

0 comments on commit 3c1f62d

Please sign in to comment.