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 4da5a25
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@

- Changes to add compatibility for Expo 36. Adding [netinfo](https://github.com/react-native-community/react-native-netinfo) as peer dependency - https://github.com/GetStream/stream-chat-react-native/issues/97
- Disabling the longpress on image viewer (in Attachment) - https://github.com/GetStream/stream-chat-react-native/issues/100 to avoid freezing of UI.
- Fixing broken threads issue

#### stream-chat-react-native (Native package)

- Disabling the longpress on image viewer (in Attachment) - https://github.com/GetStream/stream-chat-react-native/issues/100 to avoid freezing of UI.
- Fixing broken threads issue

## [0.4.0] 2019-12-16

Expand Down
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 4da5a25

Please sign in to comment.