Focus composer after closing room settings

For some reason the slate update means the composer doesn't
have the focus after closing the room settings, and the end to end
tests pick this up!
This commit is contained in:
David Baker 2018-10-09 17:35:40 +01:00
parent 4e1fabd140
commit 6f9d673b79

View file

@ -195,6 +195,8 @@ module.exports = React.createClass({
editingRoomSettings: RoomViewStore.isEditingSettings(), editingRoomSettings: RoomViewStore.isEditingSettings(),
}; };
if (this.state.editingRoomSettings && !newState.editingRoomSettings) dis.dispatch({action: 'focus_composer'});
// Temporary logging to diagnose https://github.com/vector-im/riot-web/issues/4307 // Temporary logging to diagnose https://github.com/vector-im/riot-web/issues/4307
console.log( console.log(
'RVS update:', 'RVS update:',