Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit d3730a0

Browse files
authored
Release 1.7.4
Release 1.7.4
2 parents 3329d6c + 6faf5d0 commit d3730a0

File tree

6 files changed

+37
-24
lines changed

6 files changed

+37
-24
lines changed

CHANGELOG.md

+21-17
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,37 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## 1.7.4 - 2020-09-18
6+
* [FIX] Select input field not working issue (#481)
7+
* [FIX] Invisible div on top of page (#496)
8+
59
## 1.7.3 - 2020-09-09
610
bump version
711

812
## 1.7.2 - 2020-09-09
9-
[FIX] IE11 Support (#492)
13+
* [FIX] IE11 Support (#492)
1014

1115
## 1.7.1 - 2020-08-28
12-
[FIX] UiKit interation using header as autorization (#483)
13-
[FIX] Transpile widget.js with Babel
16+
* [FIX] UiKit interation using header as autorization (#483)
17+
* [FIX] Transpile widget.js with Babel
1418

1519
## 1.7.0 - 2020-08-21
16-
[NEW] UiKit support (#474)
17-
[CHORE] Loki visual tests (#459)
18-
[IMPROVE] Translate to spanish (#413)
19-
[NEW] Message character limit feature (#443)
20-
[IMPROVE] Preact X (#457)
21-
[NEW] Add Emoji rendering support (#412)
20+
* [NEW] UiKit support (#474)
21+
* [CHORE] Loki visual tests (#459)
22+
* [IMPROVE] Translate to spanish (#413)
23+
* [NEW] Message character limit feature (#443)
24+
* [IMPROVE] Preact X (#457)
25+
* [NEW] Add Emoji rendering support (#412)
2226

2327
## 1.6.0 - 2020-06-29
24-
[FIX] Improve the transcript request process. (#419)
25-
[FIX] Start chat disable with handler validate error (#432)
26-
[FIX] Loading should be flase when department switched is confirmed (#… …
27-
[FIX] Widget playing multiple sound notifications(Multiple tabs) (#435)
28-
[NEW] Translate to japanese
29-
[NEW] Translate i18n to Czech
30-
[NEW] Update fr.json
31-
[NEW] Translate to japanese
28+
* [FIX] Improve the transcript request process. (#419)
29+
* [FIX] Start chat disable with handler validate error (#432)
30+
* [FIX] Loading should be flase when department switched is confirmed (#… …
31+
* [FIX] Widget playing multiple sound notifications(Multiple tabs) (#435)
32+
* [NEW] Translate to japanese
33+
* [NEW] Translate i18n to Czech
34+
* [NEW] Update fr.json
35+
* [NEW] Translate to japanese
3236

3337
## 1.5.0 - 2020-05-20
3438
* [NEW] Support Registration Form custom fields (#407) …

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rocket.chat/livechat",
3-
"version": "1.7.3",
3+
"version": "1.7.4",
44
"files": [
55
"/build"
66
],

src/components/App/index.js

+12-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import GDPRAgreement from '../../routes/GDPRAgreement';
1717
import LeaveMessage from '../../routes/LeaveMessage';
1818
import Register from '../../routes/Register';
1919
import SwitchDepartment from '../../routes/SwitchDepartment';
20-
import { Provider as StoreProvider, Consumer as StoreConsumer } from '../../store';
20+
import { Provider as StoreProvider, Consumer as StoreConsumer, store } from '../../store';
2121
import { visibility, isActiveSession } from '../helpers';
2222

2323
function isRTL(s) {
@@ -104,7 +104,17 @@ export class App extends Component {
104104
handleRestore = () => {
105105
parentCall('restoreWindow');
106106
const { dispatch } = this.props;
107-
dispatch({ minimized: false, undocked: false });
107+
const { undocked } = this.props;
108+
const dispatchRestore = () => dispatch({ minimized: false, undocked: false });
109+
const dispatchEvent = () => {
110+
dispatchRestore();
111+
store.off('storageSynced', dispatchEvent);
112+
}
113+
if (undocked) {
114+
store.on('storageSynced', dispatchEvent);
115+
} else {
116+
dispatchRestore();
117+
}
108118
}
109119

110120
handleOpenWindow = () => {

src/routes/LeaveMessage/component.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ export default class LeaveMessage extends Component {
5656

5757
handleFieldChange = (name) => ({ target: { value } }) => {
5858
const error = this.validate({ name, value });
59-
this.setState({ [name]: { ...this.state[name], value, error, showError: false } });
60-
this.validateAll();
59+
this.setState({ [name]: { ...this.state[name], value, error, showError: false } }, () => { this.validateAll(); });
6160
}
6261

6362
handleNameChange = this.handleFieldChange('name')

src/routes/SwitchDepartment/component.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ export default class SwitchDepartment extends Component {
5050

5151
handleFieldChange = (name) => ({ target: { value } }) => {
5252
const error = this.validate({ name, value });
53-
this.setState({ [name]: { ...this.state[name], value, error, showError: false } });
54-
this.validateAll();
53+
this.setState({ [name]: { ...this.state[name], value, error, showError: false } }, () => { this.validateAll(); });
5554
}
5655

5756
handleDepartmentChange = this.handleFieldChange('department')

src/store/Store.js

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export default class Store {
3535

3636
const storedState = JSON.parse(e.newValue);
3737
this.setStoredState(storedState);
38+
this.emit('storageSynced');
3839
});
3940

4041
window.addEventListener('load', () => {

0 commit comments

Comments
 (0)