Skip to content

Commit 456a579

Browse files
authored
Merge branch 'master' into fix/jump-to-first-unread-message-last-read-message-unknown
2 parents 6738d44 + 80909c6 commit 456a579

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

Diff for: CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## [11.12.1](https://github.com/GetStream/stream-chat-react/compare/v11.12.0...v11.12.1) (2024-03-19)
2+
3+
4+
### Bug Fixes
5+
6+
* await word replace before submitting message ([#2332](https://github.com/GetStream/stream-chat-react/issues/2332)) ([f396a81](https://github.com/GetStream/stream-chat-react/commit/f396a814723a49fdc4b828ea62354946f6815a86))
7+
* link-breaking typos ([#2322](https://github.com/GetStream/stream-chat-react/issues/2322)) ([17f6b0d](https://github.com/GetStream/stream-chat-react/commit/17f6b0d6bc4f81e1e8272481ce3cd7da1c58ecba))
8+
19
## [11.12.0](https://github.com/GetStream/stream-chat-react/compare/v11.11.0...v11.12.0) (2024-03-07)
210

311

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
"@semantic-release/changelog": "^6.0.2",
147147
"@semantic-release/git": "^10.0.1",
148148
"@stream-io/rollup-plugin-node-builtins": "^2.1.5",
149-
"@stream-io/stream-chat-css": "^4.9.0",
149+
"@stream-io/stream-chat-css": "^4.9.1",
150150
"@testing-library/jest-dom": "^6.1.4",
151151
"@testing-library/react": "^13.1.1",
152152
"@testing-library/react-hooks": "^8.0.0",

Diff for: src/components/AutoCompleteTextarea/Textarea.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,14 @@ export class ReactTextareaAutocomplete extends React.Component {
113113
if (event.key === 'Escape') return this._closeAutocomplete();
114114
};
115115

116-
_onEnter = (event) => {
116+
_onEnter = async (event) => {
117117
if (!this.textareaRef) return;
118118

119119
const trigger = this.state.currentTrigger;
120120

121121
if (!trigger || !this.state.data) {
122122
// trigger a submit
123-
this._replaceWord();
123+
await this._replaceWord();
124124
if (this.textareaRef) {
125125
this.textareaRef.selectionEnd = 0;
126126
}

Diff for: src/components/MessageInput/__tests__/MessageInput.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ function axeNoViolations(container) {
826826
}),
827827
);
828828

829-
act(() => fireEvent.keyDown(input, { key: 'Enter' }));
829+
await act(() => fireEvent.keyDown(input, { key: 'Enter' }));
830830

831831
expect(submitHandler).toHaveBeenCalledWith(
832832
expect.objectContaining({

Diff for: yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -2236,10 +2236,10 @@
22362236
crypto-browserify "^3.11.0"
22372237
process-es6 "^0.11.2"
22382238

2239-
"@stream-io/stream-chat-css@^4.9.0":
2240-
version "4.9.0"
2241-
resolved "https://registry.yarnpkg.com/@stream-io/stream-chat-css/-/stream-chat-css-4.9.0.tgz#5e350268c313703c59fc2292f4c8e756c72d2fef"
2242-
integrity sha512-ibHLGgY8L+K73Nb/Jof6XI3i77R0vVzpYd+WliCukJrpQo5To6I99gJMwzUA6Xis5TCDj35MDnWSzy1aJsJhpA==
2239+
"@stream-io/stream-chat-css@^4.9.1":
2240+
version "4.9.1"
2241+
resolved "https://registry.yarnpkg.com/@stream-io/stream-chat-css/-/stream-chat-css-4.9.1.tgz#f81825509385c3fb9dbdb67c0447bd3106ad03ac"
2242+
integrity sha512-e8ISiLoUb5ZcFnY7Xg0pKDDz9UOFQPXzMeo5olTHlbP4goS+Ss0gnoUALIe+pTvfEGOhmaOa+EPrPheDzqflSg==
22432243

22442244
"@stream-io/transliterate@^1.5.5":
22452245
version "1.5.5"

0 commit comments

Comments
 (0)