Skip to content

Commit 70390c9

Browse files
author
Dan Carbonell
committed
update change log
1 parent fd69981 commit 70390c9

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Changelog
22

3-
## [1.3.0] 2020-09-01 (UNPUBLISHED)
3+
## [1.3.0] 2020-09-11 (UNPUBLISHED)
44

55
**BREAKING CHANGES**
66

77
*ChannelList*
88

9-
- We converted the ChannelList component from a class to a function and abstracted the event listener logic into custom hooks. The default event handlers can still be overriden by providing custom prop functions to the ChannelList component. Custom logic can be provided for the following events:
9+
- We converted the ChannelList component from a class to a function and abstracted the event listener logic into custom hooks. The default event handlers can still be overridden by providing custom prop functions to the ChannelList component. Custom logic can be provided for the following events:
1010

1111
- `onAddedToChannel` overrides `notification.added_to_channel` default
1212
- `onChannelDeleted` overrides `channel.deleted` default
@@ -84,6 +84,10 @@
8484
- `dateSeparator` (use DateSeparator instead)
8585
- `headerComponent` (use HeaderComponent instead)
8686

87+
*this Reference Removal*
88+
89+
- We have removed the `this` class component reference from the prop functions in `MessageSimple`. For example, if you wish to override the SDK's standard long press behavior on a message, the `onLongPress` function passed in to `MessageSimple` no longer takes the `this` component reference as it's first argument. The message and the event object become the first and second arguments, respectively.
90+
8791
## [1.2.0] 2020-08-21
8892

8993
**NO BREAKING CHANGES**

src/components/Message/Message.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,6 @@ DefaultMessage.propTypes = {
272272
Message: PropTypes.oneOfType([PropTypes.node, PropTypes.elementType]),
273273
/** Current [message object](https://getstream.io/chat/docs/#message_format) */
274274
message: PropTypes.object.isRequired,
275-
/**
276-
* Array of allowed actions on message. e.g. ['edit', 'delete', 'reactions', 'reply']
277-
* If all the actions need to be disabled, empty array or false should be provided as value of prop.
278-
* */
279-
messageActions: PropTypes.oneOfType([PropTypes.bool, PropTypes.array]),
280275
/**
281276
* Handler to open the thread on message. This is callback for touch event for replies button.
282277
*

0 commit comments

Comments
 (0)