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

Commit

Permalink
Release 1.7.4
Browse files Browse the repository at this point in the history
Release 1.7.4
  • Loading branch information
ggazzo authored Sep 18, 2020
2 parents 3329d6c + 6faf5d0 commit d3730a0
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 24 deletions.
38 changes: 21 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,37 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## 1.7.4 - 2020-09-18
* [FIX] Select input field not working issue (#481)
* [FIX] Invisible div on top of page (#496)

## 1.7.3 - 2020-09-09
bump version

## 1.7.2 - 2020-09-09
[FIX] IE11 Support (#492)
* [FIX] IE11 Support (#492)

## 1.7.1 - 2020-08-28
[FIX] UiKit interation using header as autorization (#483)
[FIX] Transpile widget.js with Babel
* [FIX] UiKit interation using header as autorization (#483)
* [FIX] Transpile widget.js with Babel

## 1.7.0 - 2020-08-21
[NEW] UiKit support (#474)
[CHORE] Loki visual tests (#459)
[IMPROVE] Translate to spanish (#413)
[NEW] Message character limit feature (#443)
[IMPROVE] Preact X (#457)
[NEW] Add Emoji rendering support (#412)
* [NEW] UiKit support (#474)
* [CHORE] Loki visual tests (#459)
* [IMPROVE] Translate to spanish (#413)
* [NEW] Message character limit feature (#443)
* [IMPROVE] Preact X (#457)
* [NEW] Add Emoji rendering support (#412)

## 1.6.0 - 2020-06-29
[FIX] Improve the transcript request process. (#419)
[FIX] Start chat disable with handler validate error (#432)
[FIX] Loading should be flase when department switched is confirmed (#… …
[FIX] Widget playing multiple sound notifications(Multiple tabs) (#435)
[NEW] Translate to japanese
[NEW] Translate i18n to Czech
[NEW] Update fr.json
[NEW] Translate to japanese
* [FIX] Improve the transcript request process. (#419)
* [FIX] Start chat disable with handler validate error (#432)
* [FIX] Loading should be flase when department switched is confirmed (#… …
* [FIX] Widget playing multiple sound notifications(Multiple tabs) (#435)
* [NEW] Translate to japanese
* [NEW] Translate i18n to Czech
* [NEW] Update fr.json
* [NEW] Translate to japanese

## 1.5.0 - 2020-05-20
* [NEW] Support Registration Form custom fields (#407) …
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rocket.chat/livechat",
"version": "1.7.3",
"version": "1.7.4",
"files": [
"/build"
],
Expand Down
14 changes: 12 additions & 2 deletions src/components/App/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import GDPRAgreement from '../../routes/GDPRAgreement';
import LeaveMessage from '../../routes/LeaveMessage';
import Register from '../../routes/Register';
import SwitchDepartment from '../../routes/SwitchDepartment';
import { Provider as StoreProvider, Consumer as StoreConsumer } from '../../store';
import { Provider as StoreProvider, Consumer as StoreConsumer, store } from '../../store';
import { visibility, isActiveSession } from '../helpers';

function isRTL(s) {
Expand Down Expand Up @@ -104,7 +104,17 @@ export class App extends Component {
handleRestore = () => {
parentCall('restoreWindow');
const { dispatch } = this.props;
dispatch({ minimized: false, undocked: false });
const { undocked } = this.props;
const dispatchRestore = () => dispatch({ minimized: false, undocked: false });
const dispatchEvent = () => {
dispatchRestore();
store.off('storageSynced', dispatchEvent);
}
if (undocked) {
store.on('storageSynced', dispatchEvent);
} else {
dispatchRestore();
}
}

handleOpenWindow = () => {
Expand Down
3 changes: 1 addition & 2 deletions src/routes/LeaveMessage/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ export default class LeaveMessage extends Component {

handleFieldChange = (name) => ({ target: { value } }) => {
const error = this.validate({ name, value });
this.setState({ [name]: { ...this.state[name], value, error, showError: false } });
this.validateAll();
this.setState({ [name]: { ...this.state[name], value, error, showError: false } }, () => { this.validateAll(); });
}

handleNameChange = this.handleFieldChange('name')
Expand Down
3 changes: 1 addition & 2 deletions src/routes/SwitchDepartment/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ export default class SwitchDepartment extends Component {

handleFieldChange = (name) => ({ target: { value } }) => {
const error = this.validate({ name, value });
this.setState({ [name]: { ...this.state[name], value, error, showError: false } });
this.validateAll();
this.setState({ [name]: { ...this.state[name], value, error, showError: false } }, () => { this.validateAll(); });
}

handleDepartmentChange = this.handleFieldChange('department')
Expand Down
1 change: 1 addition & 0 deletions src/store/Store.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default class Store {

const storedState = JSON.parse(e.newValue);
this.setStoredState(storedState);
this.emit('storageSynced');
});

window.addEventListener('load', () => {
Expand Down

0 comments on commit d3730a0

Please sign in to comment.