Skip to content

Commit

Permalink
add update param to addMessagesSorted (#582)
Browse files Browse the repository at this point in the history
* add update param to addMessagesSorted

* bump stream-chat to v2.7.0
  • Loading branch information
Amin Mahboubi authored Oct 21, 2020
1 parent 0e74494 commit d0399a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"peerDependencies": {
"react": "^16.8.x",
"react-dom": "^16.8.x",
"stream-chat": "2.6.x"
"stream-chat": "2.7.x"
},
"files": [
"dist",
Expand Down Expand Up @@ -130,7 +130,7 @@
"rollup-plugin-visualizer": "^4.1.1",
"sass": "^1.26.11",
"sass-loader": "^10.0.2",
"stream-chat": "^2.6.0",
"stream-chat": "^2.7.0",
"style-loader": "^1.3.0",
"stylelint": "^13.7.2",
"stylelint-config-recommended-scss": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Channel/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ const ChannelInner = ({
(updatedMessage) => {
// adds the message to the local channel state..
// this adds to both the main channel state as well as any reply threads
channel.state.addMessageSorted(updatedMessage);
channel.state.addMessageSorted(updatedMessage, true);

dispatch({
type: 'copyMessagesFromChannel',
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11209,10 +11209,10 @@ stream-browserify@^2.0.1:
inherits "~2.0.1"
readable-stream "^2.0.2"

stream-chat@^2.6.0:
version "2.6.0"
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-2.6.0.tgz#2fae6e4c5a56a8f86dee0676654fe2511d751aab"
integrity sha512-hI1aIMCkcGektSOt7Gt2CrrKmHKn31ovbJ+IWz1rsgdZHiWLCG2QG7JgGUKeoJVD/Ix501CjnEugZHlFdbZLwg==
stream-chat@^2.7.0:
version "2.7.0"
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-2.7.0.tgz#a1f9fe1474d270cee9e0e118953d7dcbbadd90ba"
integrity sha512-JRhw5JyIrS9bKVhLzEu57BxXTExMlxCJu0YXdMryJh9Wnl0XOzzjwCwYqZIFWFWH52RGyovQ+8VxkRzURStowg==
dependencies:
"@babel/runtime" "^7.11.2"
"@types/jsonwebtoken" "^8.5.0"
Expand Down

0 comments on commit d0399a9

Please sign in to comment.